diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index b55e5430a..04dc9d746 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -283,9 +283,11 @@ class SMBC(_ParserScraper): rurl = escape(url) stripUrl = url + '?id=%s' firstStripUrl = stripUrl % '1' - imageSearch = '//img[@id="comic"]' + multipleImagesPerStrip = True + imageSearch = ['//img[@id="comic"]', '//div[@id="aftercomic"]/img'] prevSearch = '//a[@class="prev"]' help = 'Index format: nnnn' + textSearch = '//img[@id="comic"]/@title' @classmethod def namer(cls, imageUrl, pageUrl): @@ -421,15 +423,6 @@ class SpareParts(_BasicScraper): help = 'Index format: yyyymmdd' -class Spinnerette(_ParserScraper): - url = 'http://www.spinnyverse.com/' - stripUrl = url + 'comic/%s' - firstStripUrl = stripUrl % '02-09-2010' - imageSearch = '//div[@id="cc-comicbody"]//img' - prevSearch = '//a[@class="prev"]' - help = 'Index format: number' - - class StandStillStaySilent(_ParserScraper): url = 'http://www.sssscomic.com/comic.php' rurl = escape(url) diff --git a/dosagelib/scraper.py b/dosagelib/scraper.py index b9492f9da..670e52932 100644 --- a/dosagelib/scraper.py +++ b/dosagelib/scraper.py @@ -441,7 +441,7 @@ class _ParserScraper(Scraper): searchUrls.append(match.get(attrib)) except AttributeError: searchUrls.append(str(match)) - if searchUrls: + if not cls.multipleImagesPerStrip and searchUrls: # do not search other links if one pattern matched break if not searchUrls: