From 4c063bc6823c254a569cbe8f77ad31118470db24 Mon Sep 17 00:00:00 2001 From: Vitiko Date: Thu, 7 Apr 2022 22:18:22 -0400 Subject: [PATCH] no log: update supersubtitles.py comments --- libs/subliminal_patch/providers/supersubtitles.py | 10 +++++----- 1 file 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(): '''