Allow combining -n with -c or -a (related to #90)

This allows fetching "all" comics (or catch up until the last existing
one) while setting an upper bound on how many pages to fetch at the same
time.
This commit is contained in:
Tobias Gruetzmacher 2019-12-01 23:19:06 +01:00
parent 4d2fac1a9c
commit f5a5106381

View file

@ -95,10 +95,10 @@ class ComicGetter(threading.Thread):
def _getStrips(self, scraperobj): def _getStrips(self, scraperobj):
"""Get all strips from a scraper.""" """Get all strips from a scraper."""
if self.options.all or self.options.cont: if self.options.numstrips:
numstrips = None
elif self.options.numstrips:
numstrips = self.options.numstrips numstrips = self.options.numstrips
elif self.options.cont or self.options.all:
numstrips = None
else: else:
# get current strip # get current strip
numstrips = 1 numstrips = 1