Fixed EvilInc comics. Closes #58

This commit is contained in:
Peter B 2014-02-14 19:33:13 -05:00
parent b67717d66e
commit b44b751efa

View file

@ -193,7 +193,9 @@ class EvilInc(_BasicScraper):
url = 'http://evil-inc.com/' url = 'http://evil-inc.com/'
stripUrl = url + 'comic/%s' stripUrl = url + 'comic/%s'
firstStripUrl = stripUrl % 'monday-3' 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") + prevSearch = compile(tagre("span", "class", "mininav-prev") +
tagre("a", "href", r'([^"]+)')) tagre("a", "href", r'([^"]+)'))
help = 'Index format: stripname' help = 'Index format: stripname'