import re from dosage.modules.helpers.BasicComicModule import BasicComicModule, IndirectLatestMixin class SGVY(BasicComicModule, IndirectLatestMixin): baseUrl = 'http://www.sgvy.com/' imageUrl = 'http://www.sgvy.com/Edda%s/Issue%s/Page%s.html' imageSearch = re.compile(r'Prev') nextSearch = re.compile(r'Next') latestSearch = re.compile(r'') help = 'Index format: edda-issue-page' def setStrip(self, index): self.currentUrl = self.imageUrl % tuple(map(int, index.split('-')))