better error message

pull/528/head
meisnate12 3 years ago
parent 856b96f819
commit ca7b14fa35

@ -50,7 +50,6 @@ class FlixPatrol:
if len(ids) > 0 and ids[0]: if len(ids) > 0 and ids[0]:
if "https://www.themoviedb.org" in ids[0]: if "https://www.themoviedb.org" in ids[0]:
return util.regex_first_int(ids[0].split("https://www.themoviedb.org")[1], "TMDB Movie ID") return util.regex_first_int(ids[0].split("https://www.themoviedb.org")[1], "TMDB Movie ID")
raise Failed(f"FlixPatrol Error: TMDb Movie ID not found in {ids[0]}")
raise Failed(f"FlixPatrol Error: TMDb Movie ID not found at {flixpatrol_url}") raise Failed(f"FlixPatrol Error: TMDb Movie ID not found at {flixpatrol_url}")
def _parse_list(self, list_url, language, is_movie, limit=0): def _parse_list(self, list_url, language, is_movie, limit=0):

Loading…
Cancel
Save