From ee99c087d7c0448fe68a7ac9b7b9a8af8e479b46 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 16 Apr 2016 01:14:26 +0200 Subject: [PATCH] Remove prevUrlMatchesStripUrl. It was only used for one test. --- dosagelib/plugins/smackjeeves.py | 3 --- dosagelib/scraper.py | 4 ---- tests/test_comics.py | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/dosagelib/plugins/smackjeeves.py b/dosagelib/plugins/smackjeeves.py index 2b3b89443..1696713e3 100644 --- a/dosagelib/plugins/smackjeeves.py +++ b/dosagelib/plugins/smackjeeves.py @@ -72,12 +72,9 @@ def add(name, url, adult, bounce): url = url, starter = _starter, prevUrlModifier = lambda cls, url: modifier(url), - stripUrl = url + '%s/', imageSearch = _imageSearch, prevSearch = _prevSearch, - prevUrlMatchesStripUrl = not adult, lang = 'es' if name.lower().endswith('spanish') else 'en', - help = 'Index format: nnnn (some increasing number)', namer = namer, ) diff --git a/dosagelib/scraper.py b/dosagelib/scraper.py index 8148dfcd0..79f113614 100644 --- a/dosagelib/scraper.py +++ b/dosagelib/scraper.py @@ -54,10 +54,6 @@ class Scraper(object): # if more than one image per URL is expected multipleImagesPerStrip = False - # set to False if previous URLs do not match the strip URL (ie. because of - # redirects) - prevUrlMatchesStripUrl = True - # set to True if this comic contains adult content adult = False diff --git a/tests/test_comics.py b/tests/test_comics.py index 65047c76c..ad235c699 100644 --- a/tests/test_comics.py +++ b/tests/test_comics.py @@ -60,7 +60,7 @@ def _test_comic(outdir, scraperobj): for strip in scraperobj.getStrips(MaxStrips): _check_strip(outdir, strip, scraperobj.multipleImagesPerStrip) - if num_strips > 0 and scraperobj.prevUrlMatchesStripUrl: + if num_strips > 0: _check_stripurl(strip, scraperobj) num_strips += 1