|
|
|
@ -183,8 +183,9 @@ class LegendasNetProvider(ProviderRetryMixin, Provider):
|
|
|
|
|
subtitle = LegendasNetSubtitle(
|
|
|
|
|
language=Language('por', 'BR'),
|
|
|
|
|
forced=self._is_forced(item),
|
|
|
|
|
page_link= f"https://legendas.net/tv_legenda?movie_id={result['tv_shows'][0]['tmdb_id']}&legenda_id={item['id']}",
|
|
|
|
|
download_link= item['path'],
|
|
|
|
|
page_link=f"https://legendas.net/tv_legenda?movie_id={result['tv_shows'][0]['tmdb_id']}&"
|
|
|
|
|
f"legenda_id={item['id']}",
|
|
|
|
|
download_link=item['path'],
|
|
|
|
|
file_id=item['id'],
|
|
|
|
|
release_names=[item.get('release_name', '')],
|
|
|
|
|
uploader=item['uploader'],
|
|
|
|
@ -200,8 +201,9 @@ class LegendasNetProvider(ProviderRetryMixin, Provider):
|
|
|
|
|
subtitle = LegendasNetSubtitle(
|
|
|
|
|
language=Language('por', 'BR'),
|
|
|
|
|
forced=self._is_forced(item),
|
|
|
|
|
page_link= f"https://legendas.net/legenda?movie_id={result['movies'][0]['tmdb_id']}&legenda_id={item['id']}",
|
|
|
|
|
download_link= item['path'],
|
|
|
|
|
page_link=f"https://legendas.net/legenda?movie_id={result['movies'][0]['tmdb_id']}&"
|
|
|
|
|
f"legenda_id={item['id']}",
|
|
|
|
|
download_link=item['path'],
|
|
|
|
|
file_id=item['id'],
|
|
|
|
|
release_names=[item.get('release_name', '')],
|
|
|
|
|
uploader=item['uploader'],
|
|
|
|
@ -229,7 +231,7 @@ class LegendasNetProvider(ProviderRetryMixin, Provider):
|
|
|
|
|
|
|
|
|
|
def download_subtitle(self, subtitle):
|
|
|
|
|
logger.debug('Downloading subtitle %r', subtitle)
|
|
|
|
|
download_link = urljoin("https://legendas.net",subtitle.download_link)
|
|
|
|
|
download_link = urljoin("https://legendas.net", subtitle.download_link)
|
|
|
|
|
|
|
|
|
|
r = self.retry(
|
|
|
|
|
lambda: self.session.get(download_link, timeout=30),
|
|
|
|
|