Fix zwarwald

This commit is contained in:
Bastian Kleineidam 2013-04-10 20:14:43 +02:00
parent 998b8b9ff0
commit a0c7f54871

View file

@ -66,9 +66,12 @@ class Zwarwald(_BasicScraper):
# anything before page 495 seems to be flash # anything before page 495 seems to be flash
firstStripUrl = stripUrl % '495' firstStripUrl = stripUrl % '495'
lang = 'de' 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) + 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' help = 'Index format: number'
waitSeconds = 1 waitSeconds = 1