letterboxd fix

pull/103/head
meisnate12 4 years ago
parent 5fa0b9ae49
commit 1dd8e727ef

@ -34,7 +34,7 @@ class LetterboxdAPI:
ids = response.xpath("//body/@data-tmdb-id") ids = response.xpath("//body/@data-tmdb-id")
if len(ids) > 0 and ids[0]: if len(ids) > 0 and ids[0]:
return int(ids[0]) return int(ids[0])
raise Failed(f"Letterboxd Error: TMDb ID not found at {letterboxd_url}") raise Failed(f"Letterboxd Error: TMDb Movie ID not found at {letterboxd_url}")
def get_items(self, method, data, language, status_message=True): def get_items(self, method, data, language, status_message=True):
pretty = util.pretty_names[method] if method in util.pretty_names else method pretty = util.pretty_names[method] if method in util.pretty_names else method

Loading…
Cancel
Save