summaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authorGravatar ryuslash2010-03-19 00:18:04 +0100
committerGravatar ryuslash2010-03-19 00:18:04 +0100
commit7f8dfa1d30583dd1d8c40c6cd1c079d2a722c9df (patch)
tree12564b5ac501f2a35b660d7f5bd7461581f3f6ae /config.py
parent4a9cc7e2b608332f3d41aa47f5f1a893a5eab529 (diff)
download4grab-7f8dfa1d30583dd1d8c40c6cd1c079d2a722c9df.tar.gz
4grab-7f8dfa1d30583dd1d8c40c6cd1c079d2a722c9df.zip
Sorting, multi category, multi resolution
After a file has been downloaded a callback function can now be called. The callback function I call checks to see if the resolution of the image appears in the collection of resolutions that has been entered in the configuration file and deletes/moves accordingly. If a file can not be read (which I have noticed happens sometimes), it is removed, not copied and not archived so that it can be retried later. 4grab got a new command-line option, -s --sorter, to sort out old images, running python sorter.py has the same effect, but this seemed pretties. theoretically multiple categories could now be entered into the configuration file seperated by ',', but this hasn't been tested yet. mutliple resolutions could be entered into the configuration file, seperated by ',' like so: 1680x1050,1920x1200. Configuration now checks to see if all the necessary properties are available in the configuration file, if one is missing, it tries to create it.
Diffstat (limited to 'config.py')
-rw-r--r--config.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/config.py b/config.py
index 66f3297..7230285 100644
--- a/config.py
+++ b/config.py
@@ -33,7 +33,6 @@ class _Configuration(object):
self.optioncreator = optioncreator
self.configparser.read(self.filename)
- print "__init__"
def check(self):
changed = False