fix letterboxd IDs

pull/351/head
meisnate12 3 years ago
parent 7b2d5579e0
commit f422f428e7

@ -13,7 +13,7 @@ class Letterboxd:
def _parse_list(self, list_url, language):
response = self.config.get_html(list_url, headers=util.header(language))
letterboxd_ids = response.xpath("//div[@class='poster film-poster really-lazy-load']/@data-film-id")
letterboxd_ids = response.xpath("//li[@class='poster-container']/div/@data-film-id")
items = []
for letterboxd_id in letterboxd_ids:
slugs = response.xpath(f"//div[@data-film-id='{letterboxd_id}']/@data-film-slug")

Loading…
Cancel
Save