fix #91
This commit is contained in:
@ -182,7 +182,7 @@ class TmdbCache(metaclass=Singleton):
|
|||||||
new_meta_data.pop(k)
|
new_meta_data.pop(k)
|
||||||
else:
|
else:
|
||||||
count = 0
|
count = 0
|
||||||
keys = random.sample(new_meta_data.keys(), 25)
|
keys = random.sample(sorted(new_meta_data.keys()), 25)
|
||||||
for k in keys:
|
for k in keys:
|
||||||
info = new_meta_data.get(k)
|
info = new_meta_data.get(k)
|
||||||
expire = info.get(CACHE_EXPIRE_TIMESTAMP_STR)
|
expire = info.get(CACHE_EXPIRE_TIMESTAMP_STR)
|
||||||
|
@ -72,7 +72,7 @@ class Transmission(metaclass=Singleton):
|
|||||||
continue
|
continue
|
||||||
# 种子标签
|
# 种子标签
|
||||||
labels = [str(tag).strip()
|
labels = [str(tag).strip()
|
||||||
for tag in torrent.labels.split(',')] if hasattr(torrent, "labels") else []
|
for tag in torrent.labels] if hasattr(torrent, "labels") else []
|
||||||
if tags and not set(tags).issubset(set(labels)):
|
if tags and not set(tags).issubset(set(labels)):
|
||||||
continue
|
continue
|
||||||
ret_torrents.append(torrent)
|
ret_torrents.append(torrent)
|
||||||
|
Reference in New Issue
Block a user