From 88369c3802b0ff892b6f98b1e07c6a2e1b8fd348 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 20 Jul 2021 08:42:58 -0400 Subject: [PATCH] hopefully fixed letterboxed IDs --- modules/letterboxd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/letterboxd.py b/modules/letterboxd.py index a00184e8..3b829811 100644 --- a/modules/letterboxd.py +++ b/modules/letterboxd.py @@ -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("//li[@class='poster-container']/div/@data-film-id") + letterboxd_ids = response.xpath("//li[contains(@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")