From e88cf514a7bcd3f05c44bd725f8af688b3897ec3 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 13 Mar 2013 18:31:58 +0100 Subject: [PATCH] Fixes for FonFlatter --- dosagelib/plugins/f.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/f.py b/dosagelib/plugins/f.py index 71a861cf9..d8840f492 100644 --- a/dosagelib/plugins/f.py +++ b/dosagelib/plugins/f.py @@ -112,10 +112,18 @@ class FonFlatter(_BasicScraper): stripUrl = url + '%s/' firstStripUrl = stripUrl % '2005/09/20/01-begegnung-mit-batman' lang = 'de' - imageSearch = compile(tagre("img", "src", r'(http://www\.fonflatter\.de/\d+/fred_\d+-\d+-\d+[^"]+)')) + imageSearch = compile(r'src="(http://www\.fonflatter\.de/\d+/fred_\d+-\d+-\d+[^"]+)') prevSearch = compile(tagre("a", "href", r'(http://www\.fonflatter\.de/[^"]+)', after="prev")) help = 'Index format: yyyy/mm/dd/number-stripname' + def shouldSkipUrl(self, url): + return url in ( + "http://www.fonflatter.de/2006/11/30/adventskalender/", + "http://www.fonflatter.de/2006/09/21/danke/", + "http://www.fonflatter.de/2006/08/23/zgf-zuweilen-gestellte-fragen/", + "http://www.fonflatter.de/2005/10/19/naq-never-asked-questions/", + ) + class Footloose(_BasicScraper): url = 'http://footloosecomic.com/footloose/today.php'