From ea5d533e30842d2958dd9b13ad2367cc5f14eff7 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 19 Jul 2014 13:23:42 +0200 Subject: [PATCH] Fix index lookups for SnowFlame and SnowFlakes. --- dosagelib/plugins/s.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index faeb6199d..5d2c8233a 100755 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -346,7 +346,7 @@ class SnowFlakes(_BasicScraper): def starter(cls): return cls.stripUrl % ('530', '5') - def getStripIndexUrl(self, index): + def getIndexStripUrl(self, index): return self.stripUrl % (index, index[0]) @classmethod @@ -382,8 +382,9 @@ class SnowFlame(_BasicScraper): tagre("a", "href", r'(%s\?comic=snowflame[^"]+)' % rurl))) help = 'Index format: chapter-page' - def getStripIndexUrl(self, index): - return self.stripUrl % index.split('-') + def getIndexStripUrl(self, index): + print(index) + return self.stripUrl % tuple(index.split('-')) @classmethod def namer(cls, imageUrl, pageUrl):