import re from dosage.modules.helpers.BasicComicModule import BasicComicModule class LittleGamers(BasicComicModule): latestUrl = 'http://www.little-gamers.com/' imageUrl = 'http://www.little-gamers.com/index.php?id=%s' imageSearch = re.compile(r'Previous', re.IGNORECASE) help = 'Index format: n (unpadded)' def getFilename(self, imageUrl, pageUrl): fn = imageUrl.split('/')[-1].split('.')[0] return '%d' % (int(fn),)