letterboxd fix

pull/351/head
meisnate12 3 years ago
parent 992c5444d9
commit 527bc7cf72

@ -44,8 +44,9 @@ class Letterboxd:
list_url = letterboxd_list.strip() list_url = letterboxd_list.strip()
if not list_url.startswith(base_url): if not list_url.startswith(base_url):
raise Failed(f"Letterboxd Error: {list_url} must begin with: {base_url}") raise Failed(f"Letterboxd Error: {list_url} must begin with: {base_url}")
if len(self._parse_list(list_url, language)) > 0: elif len(self._parse_list(list_url, language)) > 0:
valid_lists.append(list_url) valid_lists.append(list_url)
else:
raise Failed(f"Letterboxd Error: {list_url} failed to parse") raise Failed(f"Letterboxd Error: {list_url} failed to parse")
return valid_lists return valid_lists

Loading…
Cancel
Save