From 348dd5e6c0115925cf9fe570bf184d9de08c3350 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 4 Mar 2014 20:53:19 +0100 Subject: [PATCH] Add documentation --- dosagelib/director.py | 2 ++ dosagelib/plugins/u.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dosagelib/director.py b/dosagelib/director.py index daf4ab461..6637b455f 100644 --- a/dosagelib/director.py +++ b/dosagelib/director.py @@ -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() diff --git a/dosagelib/plugins/u.py b/dosagelib/plugins/u.py index cf52cd873..e8c3d0d5d 100644 --- a/dosagelib/plugins/u.py +++ b/dosagelib/plugins/u.py @@ -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))