From fa0aedb24d82871c50d186edd7b8d6bcd9976411 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 14 Nov 2021 14:14:47 -0500 Subject: [PATCH] IMDb Tuple Fix --- modules/imdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imdb.py b/modules/imdb.py index e0deb48d..5acc74e0 100644 --- a/modules/imdb.py +++ b/modules/imdb.py @@ -25,7 +25,7 @@ class IMDb: imdb_dict = {"url": imdb_dict} dict_methods = {dm.lower(): dm for dm in imdb_dict} imdb_url = util.parse("url", imdb_dict, methods=dict_methods, parent="imdb_list").strip() - if not imdb_url.startswith((v for k, v in urls.items())): + if not imdb_url.startswith(tuple([v for k, v in urls.items()])): fails = "\n".join([f"{v} (For {k.replace('_', ' ').title()})" for k, v in urls.items()]) raise Failed(f"IMDb Error: {imdb_url} must begin with either:{fails}") self._total(imdb_url, language)