From ec1021e6026aa4a3f8a789c8bdd56254ce8f9a2e Mon Sep 17 00:00:00 2001 From: German Gutierrez Date: Wed, 4 Nov 2020 21:29:34 +0100 Subject: [PATCH] bsplayer: using provides subid instead of link as ID --- libs/subliminal_patch/providers/bsplayer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/subliminal_patch/providers/bsplayer.py b/libs/subliminal_patch/providers/bsplayer.py index 00ad60b25..fec47d96d 100644 --- a/libs/subliminal_patch/providers/bsplayer.py +++ b/libs/subliminal_patch/providers/bsplayer.py @@ -25,17 +25,18 @@ class BSPlayerSubtitle(Subtitle): provider_name = 'bsplayer' hash_verifiable = True - def __init__(self, language, filename, subtype, video, link): + def __init__(self, language, filename, subtype, video, link, subid): super(BSPlayerSubtitle, self).__init__(language) self.language = language self.filename = filename self.page_link = link self.subtype = subtype self.video = video + self.subid = subid @property def id(self): - return self.page_link + return self.subid @property def release_info(self): @@ -225,7 +226,7 @@ class BSPlayerProvider(Provider): subName = item.find('subName').text subFormat = item.find('subFormat').text subtitles.append( - BSPlayerSubtitle(subLang, subName, subFormat, video, subDownloadLink) + BSPlayerSubtitle(subLang, subName, subFormat, video, subDownloadLink, subID) ) return subtitles