Merge pull request #1188 from GermanG/bsplayerfix

bsplayer: using provider subid instead of link as ID
pull/1211/head
morpheus65535 4 years ago committed by GitHub
commit afbe7e9989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save