Remove prevUrlMatchesStripUrl.

It was only used for one test.
This commit is contained in:
Tobias Gruetzmacher 2016-04-16 01:14:26 +02:00
parent 92a688457a
commit ee99c087d7
3 changed files with 1 additions and 8 deletions

View file

@ -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,
)

View file

@ -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

View file

@ -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