Add documentation

This commit is contained in:
Bastian Kleineidam 2014-03-04 20:53:19 +01:00
parent 3108c9124a
commit 348dd5e6c0
2 changed files with 3 additions and 1 deletions

View file

@ -142,6 +142,7 @@ class ComicGetter(threading.Thread):
return allskipped
def stop(self):
"""Mark this thread as stopped."""
self.stopped = True
@ -180,6 +181,7 @@ def getComics(options):
def finish():
"""Print warning about interrupt and empty the job queue."""
out.warn("Interrupted!")
for t in threads:
t.stop()

View file

@ -10,7 +10,7 @@ from ..util import getQueryParams, tagre
class Underling(_BasicScraper):
url = 'http://underlingcomic.com/'
stripUrl = url
stripUrl = url
rurl = escape(url)
firstStripUrl = stripUrl + 'page-one/'
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]*)' % rurl))