From b44b751efa6eb9fd8f07ea54b1247c4579edf7ec Mon Sep 17 00:00:00 2001 From: Peter B Date: Fri, 14 Feb 2014 19:33:13 -0500 Subject: [PATCH] Fixed EvilInc comics. Closes #58 --- dosagelib/plugins/e.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/e.py b/dosagelib/plugins/e.py index 24d7f2624..9368dc636 100755 --- a/dosagelib/plugins/e.py +++ b/dosagelib/plugins/e.py @@ -193,7 +193,9 @@ class EvilInc(_BasicScraper): url = 'http://evil-inc.com/' stripUrl = url + 'comic/%s' firstStripUrl = stripUrl % 'monday-3' - imageSearch = compile(tagre("img", "src", r'(http://i\d\.wp\.com/evil-inc\.com/wp-content/uploads/[^"]+)')) + imageSearch = compile(tagre("div", "id", "comic") + + r'\s*.*\s*' + #filter out the variant href tag + tagre("img", "src", r'(http://i\d\.wp\.com/evil-inc\.com/wp-content/uploads/[^"]+)')) prevSearch = compile(tagre("span", "class", "mininav-prev") + tagre("a", "href", r'([^"]+)')) help = 'Index format: stripname'