no log: type (no behavior changes at all)

pull/1836/head v1.0.5-beta.7
Vitiko 3 years ago
parent 4edc2b756b
commit 9c2737c963

@ -134,11 +134,11 @@ class _Banlist:
class _Blacklist(list): class _Blacklist(list):
def is_valid(self, provider, subtitle): def is_valid(self, provider, subtitle):
blacklisted = not (str(provider), str(subtitle.id)) in self blacklisted = (str(provider), str(subtitle.id)) in self
if blacklisted: if blacklisted:
logger.debug("Skipping blacklisted subtitle: %s", subtitle) logger.debug("Blacklisted subtitle: %s", subtitle)
return blacklisted return not blacklisted
class SZProviderPool(ProviderPool): class SZProviderPool(ProviderPool):

Loading…
Cancel
Save