summaryrefslogtreecommitdiffstats
path: root/download.py
Commit message (Collapse)AuthorAgeFilesLines
* FAIL and printGravatar ryuslash2010-03-191-2/+2
| | | | | 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
* Sorting, multi category, multi resolutionGravatar ryuslash2010-03-191-3/+17
| | | | | | | | | | 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.
* optioncreator, extra optionsGravatar ryuslash2010-03-171-12/+8
| | | | | 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
* Disconnected the property creation functionGravatar ryuslash2010-03-161-2/+3
| | | | 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.
* Removed download.py dependencyGravatar ryuslash2010-03-071-79/+83
| | | | download.py no longer requires progressbar.py, it now contains a class that accepts another class as a parameter, this may be useful later when adding different ways of interaction
* Stopped saying Failed and Skipped thingsGravatar ryuslash2010-02-121-2/+9
| | | | Now it summarizes at the end
* Added --threadGravatar ryuslash2010-02-111-0/+5
| | | | | | 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.
* Added license info and READMEGravatar ryuslash2010-02-091-0/+20
|
* configuration settings and startfileGravatar ryuslash2010-02-091-2/+2
| | | | | 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
* Still wasn't working on windowsGravatar ryuslash2010-02-081-0/+2
| | | | if savedir did not exists, then downloading would never work. Now if it does not exist, it is created, or it crashes and burns if it isn't allowed.
* ConfigurationGravatar ryuslash2010-01-261-2/+2
| | | | | * A configuration file is made if one hasn't been found * Certain values (currently download category and location) are stored in config file.
* Started working on configuration fileGravatar ryuslash2010-01-181-2/+3
|
* added crunchbangGravatar ryuslash2010-01-171-0/+1
|
* Parser seperation, progress barGravatar ryuslash2010-01-171-74/+51
| | | | | | | * Seperated the parser from the downloader code. * Added a progressbar class, to make it look fancier * Created some functions to do all the work in downloader.py, cleaner now * Changed parser.py to htmlparser.py, since it was conflicting with a built-in module
* Initial commitGravatar ryuslash2010-01-151-0/+118
Can download images from /w/