From 30987b37b6427cca07805067ed887cdc5603bf5b Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sun, 31 Mar 2019 23:38:35 +0300 Subject: [PATCH] fix tapas episode image retrieval --- feeds/modules/tapas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/modules/tapas.py b/feeds/modules/tapas.py index 8a6fa38..a7a0314 100644 --- a/feeds/modules/tapas.py +++ b/feeds/modules/tapas.py @@ -46,7 +46,7 @@ class TapasFeedModuleConfig(FeedModuleConfig): headers={'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0'}, ).text, 'html.parser') imgs = [] - for img in esoup.select(f'#episodes [data-eid={eid}] .art-image'): + for img in esoup.select(f'#episode-{eid} .art-image'): imgs.append(img['src']) if len(imgs) == 1: