From 4bd92761ef9b77282148008a45961a09000b0f6b Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Thu, 22 Jan 2015 16:52:21 +0100 Subject: [PATCH] [750g] only select the first thumbnail image --- modules/750g/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/750g/pages.py b/modules/750g/pages.py index 640d8d65..e6148048 100644 --- a/modules/750g/pages.py +++ b/modules/750g/pages.py @@ -50,7 +50,7 @@ class ResultsPage(HTMLPage): obj_id = Regexp(CleanText('./div[has-class("text")]/h2/a/@href'), '(.*).htm') obj_title = CleanText('./div[has-class("text")]/h2/a') - obj_thumbnail_url = CleanText('./div[has-class("image")]/a/img/@src') + obj_thumbnail_url = CleanText('./div[has-class("image")]/a/img[1]/@src') obj_short_description = CleanText('./div[has-class("text")]/p') obj_author = CleanText('./div[has-class("text")]/h3[@class="auteur"]/a', default=NotAvailable)