Only warn on selected comics.
This commit is contained in:
parent
8e3c453f75
commit
c54cacc97e
1 changed files with 3 additions and 3 deletions
4
dosage
4
dosage
|
@ -287,11 +287,11 @@ def getScrapers(comics, basepath=None, adult=True, multiple_allowed=False):
|
||||||
if len(comics) > 1:
|
if len(comics) > 1:
|
||||||
out.warn("using '@' as comic name ignores all other specified comics.")
|
out.warn("using '@' as comic name ignores all other specified comics.")
|
||||||
for scraperclass in scraper.get_scraperclasses():
|
for scraperclass in scraper.get_scraperclasses():
|
||||||
|
dirname = getDirname(scraperclass.getName())
|
||||||
|
if os.path.isdir(os.path.join(basepath, dirname)):
|
||||||
if not adult and scraperclass.adult:
|
if not adult and scraperclass.adult:
|
||||||
warn_adult(scraperclass)
|
warn_adult(scraperclass)
|
||||||
continue
|
continue
|
||||||
dirname = getDirname(scraperclass.getName())
|
|
||||||
if os.path.isdir(os.path.join(basepath, dirname)):
|
|
||||||
yield scraperclass()
|
yield scraperclass()
|
||||||
elif '@@' in comics:
|
elif '@@' in comics:
|
||||||
# all scrapers
|
# all scrapers
|
||||||
|
|
Loading…
Reference in a new issue