From f09ea95c848a29492b682f954610a23daf753e15 Mon Sep 17 00:00:00 2001 From: ryuslash Date: Thu, 11 Feb 2010 22:05:37 +0100 Subject: Added --thread With --thread a signle thread ID or thread URL can be entered. If thread is a URL, it will download it. If thread is an ID, a category must also be set. --- download.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'download.py') diff --git a/download.py b/download.py index d892608..63040c9 100644 --- a/download.py +++ b/download.py @@ -58,6 +58,8 @@ def get_thread_links(baseurl): else: "\rOpening of", url, "did not succeed, trying next one..." i += 1 + + progress.complete() return myparser.get_hyperlinks() def get_image_links(baseurl, t = []): @@ -87,6 +89,7 @@ def get_image_links(baseurl, t = []): print "\rOpening of", img_url, "did not succeed, trying next one..." i += 1 + progress.complete() return mysubparser.get_hyperlinks() def get_images(t = []): @@ -108,6 +111,8 @@ def get_images(t = []): else: print "\rNot downloading", link, "already downloaded" i += 1 + + progress.complete() if __name__ == "__main__": # Get a file-like object for the 4chan.org w/imgboard -- cgit v1.2.3-54-g00ecf