From a0c7f548710e8f65124b056b4e282186c97278ff Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 10 Apr 2013 20:14:43 +0200 Subject: [PATCH] Fix zwarwald --- dosagelib/plugins/z.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dosagelib/plugins/z.py b/dosagelib/plugins/z.py index 5e4a65acf..c9c06ea41 100644 --- a/dosagelib/plugins/z.py +++ b/dosagelib/plugins/z.py @@ -66,9 +66,12 @@ class Zwarwald(_BasicScraper): # anything before page 495 seems to be flash firstStripUrl = stripUrl % '495' lang = 'de' - imageSearch = compile(tagre("img", "src", r'(http://(?:www\.zwarwald\.de|wp1163540.wp190.webpack.hosteurope.de/wordpress)/images/\d+/\d+/[^"]+)')) + imageSearch = ( + compile(tagre("img", "src", r'(%simages/\d+/\d+/[^"]+)' % rurl)), + compile(tagre("img", "src", r'(http://wp1163540\.wp190\.webpack\.hosteurope\.de/wordpress/images/\d+/\d+/[^"]+)')), + ) prevSearch = compile(tagre("a", "href", r'(%sindex\.php/page/\d+/)' % rurl) + - tagre("img", "src", r'%simages/prev\.jpg' % rurl, quote="'")) + tagre("img", "src", r'http://zwarwald\.de/images/prev\.jpg', quote="'")) help = 'Index format: number' waitSeconds = 1