HoverHell / RedditImageGrab

Downloads images from sub-reddits of reddit.com.
GNU General Public License v3.0
311 stars 78 forks source link

--last arg is not working #60

Closed jtara1 closed 8 years ago

jtara1 commented 8 years ago

Say I enter into my terminal:

python redditdl.py --num 1 --verbose --sort-type hot pics pics

Then I get the reddit id myself from the submission and enter it in with --last arg to run

python redditdl.py --num 1 --verbose --sort-type hot --last 53a48u pics pics

Now with the messages printed we can see it did not begin downloading from the id we passed with the --last arg.

This bug shouldn't occur in the current code if we are using an 'advanced_sort' (i.e.: topmonth, controversialweek, etc.).

I've identified and solved the problem already in my pull request