mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-10 08:47:52 +08:00
slice
This commit is contained in:
parent
517e5e22e5
commit
ffa617b638
1 changed files with 2 additions and 6 deletions
|
@ -266,18 +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]
|
||||
|
||||
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 []
|
||||
|
|
Loading…
Reference in a new issue