fix loop with alt titles in argenteam

This commit is contained in:
vitiko98 2020-10-16 16:10:17 -04:00
parent 88265e7913
commit 517e5e22e5
1 changed files with 4 additions and 1 deletions

View File

@ -270,11 +270,14 @@ class ArgenteamProvider(Provider, ProviderSubtitleArchiveMixin):
else:
titles = [video.title] + video.alternative_titles
inc = 0
for title in titles:
subs = self.query(title, video, titles=titles)
if subs:
return subs
inc += 1
if inc > 2:
break
time.sleep(self.multi_result_throttle)
return []