mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 01:27:07 +00:00
no log: update legendasdivx subtitle id property (again)
This commit is contained in:
parent
4e6fd61188
commit
9e2b2d8b00
1 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ import re
|
|||
import zipfile
|
||||
from time import sleep
|
||||
from urllib.parse import quote
|
||||
from urllib.parse import parse_qs
|
||||
from requests.exceptions import HTTPError
|
||||
import rarfile
|
||||
|
||||
|
@ -48,8 +49,8 @@ class LegendasdivxSubtitle(Subtitle):
|
|||
@property
|
||||
def id(self):
|
||||
try:
|
||||
return self.page_link.split("=")[-1]
|
||||
except IndexError:
|
||||
return parse_qs(self.page_link)["lid"][0]
|
||||
except (KeyError, IndexError):
|
||||
return f"legendasdivx_{self.video.imdb_id}_{self.release_info}_{self.uploader}"
|
||||
|
||||
def get_matches(self, video):
|
||||
|
|
Loading…
Reference in a new issue