From b1fc8ad86252ec525ac85df53c3b2f73358d5ece Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 10 Feb 2015 16:21:32 +0100 Subject: [PATCH] Letterboxed new html markup fix #4640 --- .../core/media/movie/providers/automation/letterboxd.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/couchpotato/core/media/movie/providers/automation/letterboxd.py b/couchpotato/core/media/movie/providers/automation/letterboxd.py index e9fc8741..d43821c0 100644 --- a/couchpotato/core/media/movie/providers/automation/letterboxd.py +++ b/couchpotato/core/media/movie/providers/automation/letterboxd.py @@ -48,11 +48,12 @@ class Letterboxd(Automation): soup = BeautifulSoup(self.getHTMLData(self.url % username)) - for movie in soup.find_all('a', attrs = {'class': 'frame'}): - match = removeEmpty(self.pattern.split(movie['title'])) + for movie in soup.find_all('li', attrs = {'class': 'poster-container'}): + img = movie.find('img', movie) + title = img.get('alt') + movies.append({ - 'title': match[0], - 'year': match[1] + 'title': title }) return movies