From 391313972cf6feda7db27c1a411e543af44581cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Sun, 26 Apr 2015 23:47:38 +1200 Subject: [PATCH] fixed ManlyGuysDoingManlyThings --- dosagelib/plugins/m.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dosagelib/plugins/m.py b/dosagelib/plugins/m.py index d49652a5d..3be621fb7 100755 --- a/dosagelib/plugins/m.py +++ b/dosagelib/plugins/m.py @@ -42,13 +42,13 @@ class MagickChicks(_BasicScraper): help = 'Index format: name' -class ManlyGuysDoingManlyThings(_BasicScraper): +class ManlyGuysDoingManlyThings(_ParserScraper): url = 'http://thepunchlineismachismo.com/' - rurl = escape(url) stripUrl = url + 'archives/comic/%s' firstStripUrl = stripUrl % '02222010' - imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/\d+-\d+-\d+[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%sarchives/comic/[^"]+)' % rurl, after="previous")) + css = True + imageSearch = "#comic img" + prevSearch = ".comic-nav-previous" help = 'Index format: ddmmyyyy'