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
|
return allskipped
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
|
"""Mark this thread as stopped."""
|
||||||
self.stopped = True
|
self.stopped = True
|
||||||
|
|
||||||
|
|
||||||
|
@ -180,6 +181,7 @@ def getComics(options):
|
||||||
|
|
||||||
|
|
||||||
def finish():
|
def finish():
|
||||||
|
"""Print warning about interrupt and empty the job queue."""
|
||||||
out.warn("Interrupted!")
|
out.warn("Interrupted!")
|
||||||
for t in threads:
|
for t in threads:
|
||||||
t.stop()
|
t.stop()
|
||||||
|
|
|
@ -10,7 +10,7 @@ from ..util import getQueryParams, tagre
|
||||||
|
|
||||||
class Underling(_BasicScraper):
|
class Underling(_BasicScraper):
|
||||||
url = 'http://underlingcomic.com/'
|
url = 'http://underlingcomic.com/'
|
||||||
stripUrl = url
|
stripUrl = url
|
||||||
rurl = escape(url)
|
rurl = escape(url)
|
||||||
firstStripUrl = stripUrl + 'page-one/'
|
firstStripUrl = stripUrl + 'page-one/'
|
||||||
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]*)' % rurl))
|
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]*)' % rurl))
|
||||||
|
|
Loading…
Reference in a new issue