summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/subliminal_patch/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py
index 59cfd22a3..3c7e00479 100644
--- a/libs/subliminal_patch/core.py
+++ b/libs/subliminal_patch/core.py
@@ -574,12 +574,12 @@ class SZProviderPool(ProviderPool):
break
# stop when all languages are downloaded
- if set(s.language.basename for s in downloaded_subtitles) == languages:
+ if set(str(s.language) for s in downloaded_subtitles) == languages:
logger.debug('All languages downloaded')
break
# check downloaded languages
- if subtitle.language in set(s.language.basename for s in downloaded_subtitles):
+ if subtitle.language in set(str(s.language) for s in downloaded_subtitles):
logger.debug('%r: Skipping subtitle: already downloaded', subtitle.language)
continue