Commit graph

4 commits

Author SHA1 Message Date
ryuslash
dfaa24b1b6 Error with archive
The archive function in sorter.py didn't archive to .arch, now it does
2010-04-07 23:30:59 +02:00
ryuslash
3980ccf38e Sorter also sorts by date now 2010-03-22 15:17:55 +01:00
ryuslash
4b70374e9d FAIL and print
If source and dest in copy are the same, it is no longer reported
If an image can't be read, it is counted as failed
2010-03-19 16:08:39 +01: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