Add some documentation.
This commit is contained in:
parent
db4b6282b2
commit
d47670231a
2 changed files with 3 additions and 0 deletions
2
dosage
2
dosage
|
@ -295,6 +295,8 @@ def getScrapers(comics, basepath=None, adult=True, multiple_allowed=False):
|
||||||
scrapers = OrderedDict()
|
scrapers = OrderedDict()
|
||||||
for comic in comics:
|
for comic in comics:
|
||||||
if basepath and comic.startswith(basepath):
|
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("/")
|
comic = comic[len(basepath):].lstrip("/")
|
||||||
if ':' in comic:
|
if ':' in comic:
|
||||||
name, index = comic.split(':', 1)
|
name, index = comic.split(':', 1)
|
||||||
|
|
|
@ -84,6 +84,7 @@ def handle_url(url, session, res):
|
||||||
|
|
||||||
|
|
||||||
def get_description(url, session):
|
def get_description(url, session):
|
||||||
|
"""Get comic stirp description."""
|
||||||
try:
|
try:
|
||||||
data, baseUrl = getPageContent(url, session)
|
data, baseUrl = getPageContent(url, session)
|
||||||
except IOError as msg:
|
except IOError as msg:
|
||||||
|
|
Loading…
Reference in a new issue