diff options
author | Vitiko <[email protected]> | 2022-04-07 22:18:22 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2022-04-07 22:18:22 -0400 |
commit | 4c063bc6823c254a569cbe8f77ad31118470db24 (patch) | |
tree | 91e73db7fdb08fb893cf852625e6804c4ffc2fdf /libs | |
parent | 7040fbc0711f55a433ea234100baee1c1df8b816 (diff) | |
download | bazarr-4c063bc6823c254a569cbe8f77ad31118470db24.tar.gz bazarr-4c063bc6823c254a569cbe8f77ad31118470db24.zip |
no log: update supersubtitles.py commentsv1.0.4-beta.21
Diffstat (limited to 'libs')
-rw-r--r-- | libs/subliminal_patch/providers/supersubtitles.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/subliminal_patch/providers/supersubtitles.py b/libs/subliminal_patch/providers/supersubtitles.py index 4edc3cb20..01aff5a29 100644 --- a/libs/subliminal_patch/providers/supersubtitles.py +++ b/libs/subliminal_patch/providers/supersubtitles.py @@ -391,8 +391,8 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin): results = None ''' - The result will be a JSON like this: - [{ + In order to work, the result should be a JSON like this: + { "10": { "language":"Angol", "nev":"The Flash (Season 5) (1080p)", @@ -404,14 +404,14 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin): "feltolto":"J1GG4", "pontos_talalat":"111", "evadpakk":"1" - } - },...] + }, ... + } ''' subtitle_list = {} season_pack_list = {} - # Check the results: + # Check the results. If a list or a Nonetype is returned, ignore it: if results and not isinstance(results, list): for result in results.values(): ''' |