letterboxd fix

This commit is contained in:
meisnate12 2021-03-11 16:53:43 -05:00
parent 5fa0b9ae49
commit 1dd8e727ef

View file

@ -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