summaryrefslogtreecommitdiffstats
path: root/download.py
diff options
context:
space:
mode:
authorGravatar ryuslash2010-03-16 23:17:46 +0100
committerGravatar ryuslash2010-03-16 23:17:46 +0100
commit8e101c92f930422f0ec97d8d15511732732a9f37 (patch)
tree6d56a1b61299eaea7de11b72ba1e52a3317f284d /download.py
parentcaba2811b94577eb89e13d9d1a7f7de64c979acc (diff)
download4grab-8e101c92f930422f0ec97d8d15511732732a9f37.tar.gz
4grab-8e101c92f930422f0ec97d8d15511732732a9f37.zip
Disconnected the property creation function
The function used to create a new property has been changed to be a callback function, so that later on a UI might use a dialog.
Diffstat (limited to 'download.py')
-rw-r--r--download.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/download.py b/download.py
index 2405805..05a5328 100644
--- a/download.py
+++ b/download.py
@@ -25,7 +25,8 @@ import htmlparser
#import progressbar
import config
-savedir = config.Configuration().get_download_location()
+conf = config.Configuration()
+savedir = conf.get_download_location()
if not os.path.exists(savedir):
os.makedirs(savedir)
@@ -127,7 +128,7 @@ class Downloader(object):
if __name__ == "__main__":
# Get a file-like object for the 4chan.org w/imgboard
- base_url = "http://boards.4chan.org/" + config.Configuration().get_category() + "/"
+ base_url = "http://boards.4chan.org/" + conf.get_category() + "/"
# Get the hyperlinks.
t = get_thread_links(base_url)