Commit graph

11 commits

Author SHA1 Message Date
ryuslash
2db5555609 Archive lookup
4grab was saving the archived images to the wrong place, which is now fixed
2010-04-08 15:14:12 +02:00
ryuslash
7f8dfa1d30 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.
2010-03-19 00:18:04 +01:00
ryuslash
4a9cc7e2b6 optioncreator, extra options
config now has an optioncreator property that will allow another module to select how to prompt for a property
resolutions and archive options have been added to config file for sorting functionality
2010-03-17 23:11:18 +01:00
ryuslash
8e101c92f9 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.
2010-03-16 23:17:46 +01:00
ryuslash
68be1fe204 Added license info and README 2010-02-09 02:45:56 +01:00
ryuslash
1b09267876 configuration settings and startfile
Configuration Settings can now be changed with the -e command line argument
execution of 4grab has been moved to 4grab.py, but should also still work with download.py
2010-02-09 02:10:17 +01:00
ryuslash
91e0b5dc66 merged with commit from RAAM 2010-02-09 01:35:17 +01:00
ryuslash
32c4471273 working on the command-line arguments here 2010-02-09 01:32:42 +01:00
unknown
7707d5d3c6 Fixed in windows
Windows was giving trouble with the os.getenv(HOME) which can be executed in the python shell and IDLE and will return C:\Documents and Settings\username\, but when running a script it will return None.
If os.getenv(HOME) is None, then now the exec dir will be used instead
2010-02-08 01:24:18 +01:00
ryuslash
53c7802ae2 Configuration
* A configuration file is made if one hasn't been found
* Certain values (currently download category and location) are stored in config file.
2010-01-26 20:20:39 +01:00
ryuslash
c737789105 Started working on configuration file 2010-01-18 20:08:38 +01:00