From f5a5106381269d5bc742f420f45cca89d57cb709 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 1 Dec 2019 23:19:06 +0100 Subject: [PATCH] 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. --- dosagelib/director.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dosagelib/director.py b/dosagelib/director.py index 3c144c461..e2266c157 100644 --- a/dosagelib/director.py +++ b/dosagelib/director.py @@ -95,10 +95,10 @@ class ComicGetter(threading.Thread): def _getStrips(self, scraperobj): """Get all strips from a scraper.""" - if self.options.all or self.options.cont: - numstrips = None - elif self.options.numstrips: + if self.options.numstrips: numstrips = self.options.numstrips + elif self.options.cont or self.options.all: + numstrips = None else: # get current strip numstrips = 1