|
|
@ -6,6 +6,7 @@ import re
|
|
|
|
import zipfile
|
|
|
|
import zipfile
|
|
|
|
from time import sleep
|
|
|
|
from time import sleep
|
|
|
|
from urllib.parse import quote
|
|
|
|
from urllib.parse import quote
|
|
|
|
|
|
|
|
from urllib.parse import parse_qs
|
|
|
|
from requests.exceptions import HTTPError
|
|
|
|
from requests.exceptions import HTTPError
|
|
|
|
import rarfile
|
|
|
|
import rarfile
|
|
|
|
|
|
|
|
|
|
|
@ -48,8 +49,8 @@ class LegendasdivxSubtitle(Subtitle):
|
|
|
|
@property
|
|
|
|
@property
|
|
|
|
def id(self):
|
|
|
|
def id(self):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
return self.page_link.split("=")[-1]
|
|
|
|
return parse_qs(self.page_link)["lid"][0]
|
|
|
|
except IndexError:
|
|
|
|
except (KeyError, IndexError):
|
|
|
|
return f"legendasdivx_{self.video.imdb_id}_{self.release_info}_{self.uploader}"
|
|
|
|
return f"legendasdivx_{self.video.imdb_id}_{self.release_info}_{self.uploader}"
|
|
|
|
|
|
|
|
|
|
|
|
def get_matches(self, video):
|
|
|
|
def get_matches(self, video):
|
|
|
|