mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 17:17:12 +00:00
Merge pull request #1155 from vitiko98/fix-argenteam
Fix loop with alternative titles in Argenteam provider
This commit is contained in:
commit
eb2f85a1de
1 changed files with 2 additions and 3 deletions
|
@ -266,15 +266,14 @@ class ArgenteamProvider(Provider, ProviderSubtitleArchiveMixin):
|
|||
|
||||
def list_subtitles(self, video, languages):
|
||||
if isinstance(video, Episode):
|
||||
titles = [video.series] + video.alternative_series
|
||||
titles = [video.series] + video.alternative_series[:2]
|
||||
else:
|
||||
titles = [video.title] + video.alternative_titles
|
||||
titles = [video.title] + video.alternative_titles[:2]
|
||||
|
||||
for title in titles:
|
||||
subs = self.query(title, video, titles=titles)
|
||||
if subs:
|
||||
return subs
|
||||
|
||||
time.sleep(self.multi_result_throttle)
|
||||
|
||||
return []
|
||||
|
|
Loading…
Reference in a new issue