From 01aeebfbe4c6630a0cc592f9bb5747d33341d09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Sun, 31 May 2015 23:16:12 +1200 Subject: [PATCH] fixed Footloose --- dosagelib/plugins/f.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/dosagelib/plugins/f.py b/dosagelib/plugins/f.py index 7a3e51a94..a209b0a9f 100755 --- a/dosagelib/plugins/f.py +++ b/dosagelib/plugins/f.py @@ -5,7 +5,7 @@ from re import compile, escape, IGNORECASE from ..util import tagre -from ..scraper import _BasicScraper +from ..scraper import _BasicScraper, _ParserScraper from ..helpers import indirectStarter @@ -115,12 +115,11 @@ class FonFlatter(_BasicScraper): ) -class Footloose(_BasicScraper): - url = 'http://footloosecomic.com/footloose/today.php' - stripUrl = 'http://footloosecomic.com/footloose/pages.php?page=%s' - firstStripUrl = stripUrl % '1' - imageSearch = compile(r']).+?(/footloose/.+?)".+?(?:prev)') +class Footloose(_ParserScraper): + url = 'http://footloosecomic.com/footloose.php' + stripUrl = 'http://footloosecomic.com/footloose.php?comic_id=%s' + imageSearch = '//body/p[1]//img' + prevSearch = '//body/a[2]' help = 'Index format: n (unpadded)'