dosage/dosagelib/plugins/v.py
Bastian Kleineidam 958a788550 Fix some comics.
2012-11-21 21:57:26 +01:00

38 lines
1.1 KiB
Python

# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012 Bastian Kleineidam
from re import compile, IGNORECASE, MULTILINE
from ..scraper import _BasicScraper
class _VGCats(_BasicScraper):
latestUrl = 'http://www.vgcats.com/comics/'
imageSearch = compile(r'<img src="(images/\d{6}\..+?)"')
prevSearch = compile(r'<a href="(\?strip_id=\d+)"><img src="back.gif" border="0"')
help = 'Index format: n (unpadded)'
@property
def stripUrl(self):
return self.latestUrl + '?strip_id=%s'
class Super(_VGCats):
name = 'VGCats/Super'
latestUrl = 'http://www.vgcats.com/super/'
class Adventure(_VGCats):
name = 'VGCats/Adventure'
latestUrl = 'http://www.vgcats.com/ffxi/'
class ViiviJaWagner(_BasicScraper):
latestUrl = 'http://www.hs.fi/viivijawagner/'
imageSearch = compile(r'<img id="strip\d+"\s+src="([^"]+)"', IGNORECASE)
prevSearch = compile(r'<a href="(.+?)"[^>]+?>\nEdellinen&nbsp;\n<img src="http://www.hs.fi/static/hs/img/viivitaakse.gif"', MULTILINE | IGNORECASE)
# XXX ?
help = 'Index format: shrugs!'