Make xargs example actually work

This commit is contained in:
Bastian Kleineidam 2013-03-13 07:18:00 +01:00
parent e739eb7992
commit db4b6282b2

2
dosage
View file

@ -294,6 +294,8 @@ def getScrapers(comics, basepath=None, adult=True, multiple_allowed=False):
# store them in an ordered set to eliminate duplicates # store them in an ordered set to eliminate duplicates
scrapers = OrderedDict() scrapers = OrderedDict()
for comic in comics: for comic in comics:
if basepath and comic.startswith(basepath):
comic = comic[len(basepath):].lstrip("/")
if ':' in comic: if ':' in comic:
name, index = comic.split(':', 1) name, index = comic.split(':', 1)
indexes = index.split(',') indexes = index.split(',')