-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugs #37
Comments
this is simple fix for advanced sort bug which also affect simple sort
hi, i have made simple fix which will fix this. can you try this and check if the bug is still exist? |
hello. thanks for helping. it worked, now it is possible to download with sort type new..etc. |
can you provide link and command example? how do you know there is more than 937 different images? are those images given by only single reddit thread(no images album, single thread=single image)? is your download folder empty? is the second 220 images in second download is different with the first 937 images in first download? how many 'downloaded file'(which is not downloaded) are sklpped in first and second downoad? from your description i can only guess either it come numbering mistake on imgurl album or another new problem on link getter from subreddit. it can also when there is repost reddit thread and file-format title or url choosen. |
its still the same thread. lets there there ist reddit/r/example with 5000 images. i want to download it with sort-type new. it downloads the first 937 and then suddenly says for the next images: this image was already downloaded. ten i try again, its still reddit/r/example. and now it downloads only the first 220 images and then suddenly says: image already downloaded. and yes, my folder were empty. just to be sure i didnt do something worn i downloaded reddit/r/example with sort-type topall. result: no problems. there is no "images already downloaded"-error. here is a command example |
which subreddit is it? and can you try reproduce it once again with this branch https://github.com/rachmadaniHaryono/RedditImageGrab/tree/add-logger-module i create logging module so the report can be exported into text file. use '--logging-level debug --logging-file some_textfile.txt' argument |
i tried is with other reddits too. its the same error for all reddits. as i said: sort type top works fine. sort type new doesnt work. i looked up the download log (thanks for the logger module. i tihkn i wouldnt have seen it otherwise). its not looking for new images. the downloader gets stuck in a loop and trying to download the previous downloaded images again and then it says "image already downloaded". well of course these images are already downloaded. but it should look for the already downloaded ones, it should look for the next new images. edit: i tried the download without any sort type command. it works fine. |
by the way: same error for hot, rising and gilded.
to be short...its a "first 25 posts download limit"-problem (that problem occurs only for new, risng, hot, gilded sort-type. using top/controversial + time limits like week, all, month etc, or no sort type - works) |
another fix. this time i change the last id value. before this last id got its value from item, but after for loop variable 'item have its value back to None. therefore i change it to get the value from last item in 'items' list. this may cause other problem because afaik list don't have keep the its item order. i also check if it may fail at the end of request ie end of subreddit, and it is success without any fail. ./redditdl.py --num 50 konosuba this is cherry pick from fix-1k-dl branch |
still getting the same error. "image already downloaded". still only the first 25 posts downloaded.
if you tested it with that code, its the wrong one. you didnt add --sort-type new |
no, it is only to check if the fix can handle the end of the subreddit. the fix is only on branch #42 , and the new commit is to fix the '?' char at the end json url that will be used to request data from reddit. you can check using that branch or if you want to make it faster, you can also use fix-1k-dl branch with following argument './redditdl.py --debug empty-download-file --logging-level debug --logging-file 'log.txt' --num 50 --sort-type new dogpictures'. that will only download empty file, rather than downloading from imgur. |
hello there
first of all: great script! i love using it. there are a few bugs.
well first of all, it only downloads 1000 images (someone already posted that issue). buts thats okay, because you can add --num 20000 (just an example) and it won't stop at 1000.
another bug: i cant download subreddits with sort type new, hot, rising and gilded
top and controversial are working
i get this error if i try to download new, hot rising or gilded (using windows 7 command line):
A:\Python27>python redditdl.py example A:\Python27\here --sort-type new --num 10
Downloading images from "example" subreddit
Traceback (most recent call last):
File "redditdl.py", line 14, in
main()
File "A:\Python27\redditdownload\redditdownload.py", line 393, in main
reddit_sort=ARGS.sort_type)
File "A:\Python27\redditdownload\reddit.py", line 80, in getitems
if is_advanced_sort:
UnboundLocalError: local variable 'is_advanced_sort' referenced before assignment
it would be nice if you could help me
greetings
The text was updated successfully, but these errors were encountered: