From 9adb020fc2a028578baf6470024048b251461857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Tue, 26 May 2015 22:59:25 +1200 Subject: [PATCH] fixed DemolitionSquad --- dosagelib/plugins/d.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dosagelib/plugins/d.py b/dosagelib/plugins/d.py index 8224444aa..52348d43e 100644 --- a/dosagelib/plugins/d.py +++ b/dosagelib/plugins/d.py @@ -127,13 +127,12 @@ class DeepFried(_BasicScraper): help = 'Index format: none' -class DemolitionSquad(_BasicScraper): +class DemolitionSquad(_ParserScraper): url = 'http://www.demolitionsquad.de/' stripUrl = url + '?comicbeitrag=%s' firstStripUrl = stripUrl % '181' - imageSearch = compile(tagre("img", "src", r'(uploads/pics/[^"]+)')) - prevSearch = compile(tagre("a", "href", r'(\?comicbeitrag=[^"]+)') + - tagre("img", "src", r'grafik/system/blaettern_zuruck_n\.gif')) + imageSearch = '//img[contains(@src,"uploads/pics/")]' + prevSearch = '//img[@name="zuruck"]/..' help = 'Index format: number' lang = 'de'