fixed Footloose

This commit is contained in:
Damjan Košir 2015-05-31 23:16:12 +12:00
parent 029fa74067
commit 01aeebfbe4

View file

@ -5,7 +5,7 @@
from re import compile, escape, IGNORECASE from re import compile, escape, IGNORECASE
from ..util import tagre from ..util import tagre
from ..scraper import _BasicScraper from ..scraper import _BasicScraper, _ParserScraper
from ..helpers import indirectStarter from ..helpers import indirectStarter
@ -115,12 +115,11 @@ class FonFlatter(_BasicScraper):
) )
class Footloose(_BasicScraper): class Footloose(_ParserScraper):
url = 'http://footloosecomic.com/footloose/today.php' url = 'http://footloosecomic.com/footloose.php'
stripUrl = 'http://footloosecomic.com/footloose/pages.php?page=%s' stripUrl = 'http://footloosecomic.com/footloose.php?comic_id=%s'
firstStripUrl = stripUrl % '1' imageSearch = '//body/p[1]//img'
imageSearch = compile(r'<img src="/footloose/(.+?)"') prevSearch = '//body/a[2]'
prevSearch = compile(r'(?:first.+?[^>]).+?(/footloose/.+?)".+?(?:prev)')
help = 'Index format: n (unpadded)' help = 'Index format: n (unpadded)'