Only warn on selected comics.

This commit is contained in:
Bastian Kleineidam 2013-03-26 17:28:36 +01:00
parent 8e3c453f75
commit c54cacc97e

6
dosage
View file

@ -287,11 +287,11 @@ def getScrapers(comics, basepath=None, adult=True, multiple_allowed=False):
if len(comics) > 1:
out.warn("using '@' as comic name ignores all other specified comics.")
for scraperclass in scraper.get_scraperclasses():
if not adult and scraperclass.adult:
warn_adult(scraperclass)
continue
dirname = getDirname(scraperclass.getName())
if os.path.isdir(os.path.join(basepath, dirname)):
if not adult and scraperclass.adult:
warn_adult(scraperclass)
continue
yield scraperclass()
elif '@@' in comics:
# all scrapers