-
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
Re-Naming downloaded files #27
Comments
Filename is actually reddit thread ID with additional modification when an album is found instead a single link. |
I second the original suggestion of having filenames pulled from reddit thread titles. I understand this is difficult, but is it possible? |
It's very easy to add the Reddit post title to the file name. You just need to add IDENTIFIER (the post title) to the file's name. For example, in my version of the script I have changed Note that the script will crash if you pull anything with non ascii characters in the title. This can be avoided by using Unicode, which is not terribly difficult, but a bit more work to implement. Also, in case you're unaware, the thread id it saves as the file name can be used to visit the actual post by adding the id after reddit.com/ |
Whops, forgot one other line. (I haven't looked at this in awhile) I also changed the following to create the IDENTIFIER and remove some characters that aren't allowed in file names.
to
|
i already add the option. it alsom limit the total filename to be less than 256 char. |
Thanks everyone for the info, much appreciated. :) On Wed, Aug 5, 2015 at 9:05 PM, rachmadani haryono <[email protected]
|
Just created an account to post this. This makes downloaded files retain their original filename.
Please forgive my lack of coding etiquette. BE WARNED If there is an album it removes the incremental numbering if an album is present, you'll have to rely on the downloaded timestamp to sort that out locally. Do the developers see this stuff? I'm unsure. |
actually the behavior is as expected. when user want only to use the name from url , image of the album will not have index. i'm not sure if @HoverHell still working on this. you can use other fork for this |
I put up a fork of RedditImageGrab. Maybe you or @HoverHell or others might see something a little useful in what I've done. You said I can use the "other fork", is that considered the one @rachmadaniHaryono has? |
not necessarily mine. while other have their own fork you can choose which meet your need. |
After successfully downloading a bunch of images, I noticed that the file names are altered by imgur and are just random values.
Is there any possibility of renaming the files to meaningful values such as the Reddit posts' topic.
This would be very useful in saving time and in organizing it.
See if this feature can be added to this awesome piece of code.
The text was updated successfully, but these errors were encountered: