Switch Drowtales to parser scraper (also fixes it)

This commit is contained in:
Tobias Gruetzmacher 2020-09-27 20:56:26 +02:00
parent 5652b9cb23
commit b090d86c9b

View file

@ -356,17 +356,12 @@ class DrMcNinja(_ParserScraper):
help = 'Index format: {episode}p{page}'
class Drowtales(_BasicScraper):
baseUrl = 'http://www.drowtales.com/'
rurl = escape(baseUrl)
url = baseUrl + 'mainarchive.php'
class Drowtales(_ParserScraper):
url = 'http://www.drowtales.com/mainarchive.php'
stripUrl = url + '?sid=%s'
firstStripUrl = stripUrl % '4192'
imageSearch = (
compile(tagre("img", "src", r'((%s)?mainarchive/[^"]+)' % rurl)),
compile(r'background-image:url\((mainarchive/[^\)]+center\.jpg)'),
)
prevSearch = compile(tagre("a", "href", r'(\?sid=\d+)', before="link_prev_top"))
imageSearch = '//div[@id="content_middle"]//img'
prevSearch = '//a[@id="link_prev_top"]'
help = 'Index format: number'