This commit is contained in:
jxxghp 2024-01-03 18:07:48 +08:00
parent a9932d0866
commit c9b1e75361

View File

@ -373,13 +373,15 @@ class SearchChain(ChainBase):
""" """
if not size_str: if not size_str:
return 0, 0 return 0, 0
size_range = size_str.split("-") try:
if len(size_range) == 1: size_range = size_str.split("-")
return 0, float(size_range[0]) if len(size_range) == 1:
elif len(size_range) == 2: return 0, float(size_range[0])
return float(size_range[0]), float(size_range[1]) elif len(size_range) == 2:
else: return float(size_range[0]), float(size_range[1])
return 0, 0 except Exception as e:
print(str(e))
return 0, 0
def __filter_torrent(t: TorrentInfo) -> bool: def __filter_torrent(t: TorrentInfo) -> bool:
""" """