Skip to content

Commit 10bd40d

Browse files
committed
Fix letterbox release year html change
1 parent 1d4cce0 commit 10bd40d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/letterboxd.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def get_list(list_id, config=None):
7272
movie_soup = bs4.BeautifulSoup(r.text, 'html.parser')
7373

7474
imdb_id = movie_soup.find("a", {"data-track-action":"IMDb"})
75-
movie_year = movie_soup.find("div", {"class": "releaseyear"})
75+
movie_year = movie_soup\
76+
.find("div", {"class": "metablock"})\
77+
.find("div", {"class": "releaseyear"})
7678

7779
if imdb_id is not None:
7880
movie["imdb_id"] = imdb_id["href"].split("/title/")[1].split("/")[0]

0 commit comments

Comments
 (0)