shadowmoose / RedditDownloader

Scrapes Reddit to download media of your choice.
1.11k stars 99 forks source link

File name pattern - Save as original source filename. #148

Open m7ke opened 4 years ago

m7ke commented 4 years ago

Having a tag to save the media as the original filename would be useful. Such as:

https://i.imgur.com/avJ85ujP.jpg would be saved as avJ85ujP.jpg https://i.redd.it/e9im5jp9r80v.jpg would be saved as e9im5jp9r80v.jpg

Another example for https://i.redd.it/e9im5jp9r80v.jpg with the file name patterns set as: [author]/[created_date]_[source_filename]

would output: username/2020-06-21_e9im5jp9r80v.jpg

shadowmoose commented 4 years ago

This could be useful, but not all downloaders provide a suitable file name to insert. I'll add this to the tracker to potentially circle back later if it turns out robust support is possible.