Skip to content

Commit

Permalink
Fix letterbox release year html change
Browse files Browse the repository at this point in the history
  • Loading branch information
ghomasHudson committed Dec 31, 2024
1 parent 1d4cce0 commit 10bd40d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/letterboxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 10bd40d

Please sign in to comment.