Add documentation
This commit is contained in:
parent
3108c9124a
commit
348dd5e6c0
2 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue