mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 17:17:12 +00:00
bsplayer: using provides subid instead of link as ID
This commit is contained in:
parent
bd3157d537
commit
ec1021e602
1 changed files with 4 additions and 3 deletions
|
@ -25,17 +25,18 @@ class BSPlayerSubtitle(Subtitle):
|
||||||
provider_name = 'bsplayer'
|
provider_name = 'bsplayer'
|
||||||
hash_verifiable = True
|
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)
|
super(BSPlayerSubtitle, self).__init__(language)
|
||||||
self.language = language
|
self.language = language
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
self.page_link = link
|
self.page_link = link
|
||||||
self.subtype = subtype
|
self.subtype = subtype
|
||||||
self.video = video
|
self.video = video
|
||||||
|
self.subid = subid
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def id(self):
|
def id(self):
|
||||||
return self.page_link
|
return self.subid
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def release_info(self):
|
def release_info(self):
|
||||||
|
@ -225,7 +226,7 @@ class BSPlayerProvider(Provider):
|
||||||
subName = item.find('subName').text
|
subName = item.find('subName').text
|
||||||
subFormat = item.find('subFormat').text
|
subFormat = item.find('subFormat').text
|
||||||
subtitles.append(
|
subtitles.append(
|
||||||
BSPlayerSubtitle(subLang, subName, subFormat, video, subDownloadLink)
|
BSPlayerSubtitle(subLang, subName, subFormat, video, subDownloadLink, subID)
|
||||||
)
|
)
|
||||||
return subtitles
|
return subtitles
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue