From a83911aa67dcd0e921a291f7c7dcfc7c08d2ef7f Mon Sep 17 00:00:00 2001 From: sizlo Date: Tue, 18 Apr 2017 21:59:04 +0100 Subject: [PATCH] Favour the first image we found when we're not expecting multiple images --- dosagelib/scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosagelib/scraper.py b/dosagelib/scraper.py index 457d908f8..a14fdd9f1 100644 --- a/dosagelib/scraper.py +++ b/dosagelib/scraper.py @@ -142,7 +142,7 @@ class Scraper(object): out.warn( u"Found %d images instead of 1 at %s with expressions %s" % (len(imageUrls), url, prettyMatcherList(self.imageSearch))) - image = sorted(imageUrls)[0] + image = imageUrls[0] out.warn(u"Choosing image %s" % image) imageUrls = (image,) elif not imageUrls: