From 517e5e22e5f5e93be1a758c001c1132f272df7b6 Mon Sep 17 00:00:00 2001 From: vitiko98 Date: Fri, 16 Oct 2020 16:10:17 -0400 Subject: [PATCH] fix loop with alt titles in argenteam --- libs/subliminal_patch/providers/argenteam.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/subliminal_patch/providers/argenteam.py b/libs/subliminal_patch/providers/argenteam.py index 9fcafcad0..83c0e9d8c 100644 --- a/libs/subliminal_patch/providers/argenteam.py +++ b/libs/subliminal_patch/providers/argenteam.py @@ -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 []