Add some documentation.

This commit is contained in:
Bastian Kleineidam 2013-03-13 18:31:50 +01:00
parent db4b6282b2
commit d47670231a
2 changed files with 3 additions and 0 deletions

2
dosage
View file

@ -295,6 +295,8 @@ def getScrapers(comics, basepath=None, adult=True, multiple_allowed=False):
scrapers = OrderedDict()
for comic in comics:
if basepath and comic.startswith(basepath):
# make the following command work:
# find Comics -type d | xargs -n1 -P10 dosage -b Comics
comic = comic[len(basepath):].lstrip("/")
if ':' in comic:
name, index = comic.split(':', 1)

View file

@ -84,6 +84,7 @@ def handle_url(url, session, res):
def get_description(url, session):
"""Get comic stirp description."""
try:
data, baseUrl = getPageContent(url, session)
except IOError as msg: