Only warn on selected comics.

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

4
dosage
View file

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