|
|
@ -25,13 +25,13 @@ from .utils import FIRST_THOUSAND_OR_SO_USER_AGENTS as AGENT_LIST
|
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class YavkaNetSubtitle(Subtitle):
|
|
|
|
class YavkaNetSubtitle(Subtitle):
|
|
|
|
"""YavkaNet Subtitle."""
|
|
|
|
"""YavkaNet Subtitle."""
|
|
|
|
provider_name = 'yavkanet'
|
|
|
|
provider_name = 'yavkanet'
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, langauge, filename, type, video, link, fps):
|
|
|
|
def __init__(self, language, filename, type, video, link, fps):
|
|
|
|
super(YavkaNetSubtitle, self).__init__(langauge)
|
|
|
|
super(YavkaNetSubtitle, self).__init__(language)
|
|
|
|
self.langauge = langauge
|
|
|
|
|
|
|
|
self.filename = filename
|
|
|
|
self.filename = filename
|
|
|
|
self.page_link = link
|
|
|
|
self.page_link = link
|
|
|
|
self.type = type
|
|
|
|
self.type = type
|
|
|
@ -212,4 +212,5 @@ class YavkaNetProvider(Provider):
|
|
|
|
return self.process_archive_subtitle_files(ZipFile(archive_stream), language, video, link, fps)
|
|
|
|
return self.process_archive_subtitle_files(ZipFile(archive_stream), language, video, link, fps)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
logger.error('Ignore unsupported archive %r', request.headers)
|
|
|
|
logger.error('Ignore unsupported archive %r', request.headers)
|
|
|
|
|
|
|
|
region.delete(cache_key)
|
|
|
|
return []
|
|
|
|
return []
|
|
|
|