From 10bd40dbf75f1ca3a0433c85bdcafe8ab99c6ae7 Mon Sep 17 00:00:00 2001 From: thomas Date: Tue, 31 Dec 2024 02:13:08 +0000 Subject: [PATCH] Fix letterbox release year html change --- plugins/letterboxd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/letterboxd.py b/plugins/letterboxd.py index a4ee426..5834f55 100644 --- a/plugins/letterboxd.py +++ b/plugins/letterboxd.py @@ -72,7 +72,9 @@ def get_list(list_id, config=None): movie_soup = bs4.BeautifulSoup(r.text, 'html.parser') imdb_id = movie_soup.find("a", {"data-track-action":"IMDb"}) - movie_year = movie_soup.find("div", {"class": "releaseyear"}) + movie_year = movie_soup\ + .find("div", {"class": "metablock"})\ + .find("div", {"class": "releaseyear"}) if imdb_id is not None: movie["imdb_id"] = imdb_id["href"].split("/title/")[1].split("/")[0]