Serene-Arc / bulk-downloader-for-reddit

Downloads and archives content from reddit
https://pypi.org/project/bdfr
GNU General Public License v3.0
2.32k stars 213 forks source link

[FEATURE] Download MP4s instead of GIFs for nsfw i.redd.it videos #949

Open ymgenesis opened 9 months ago

ymgenesis commented 9 months ago

Description

Not sure if reddit changed the way they host & serve nsfw videos, but all nsfw moving pictures not stored externally are downloaded as GIFs from i.reddit.it instead of MP4s (usually from v.reddit.it). These are often more than 10-50 times the size of the MP4 versions. It might be that it was always like this, but I can't imagine nsfw posters are creating and uploading only GIFs to reddit, and I've noticed a huge increase of GIFs downloading instead of what was usually MP4s. You can still access the mp4 preview links:

nsfw (no nudity) example: Post: https://www.reddit.com/r/SydneySweeney/comments/17g8n9e/sydney_for_savage_x_fenty_ig_story_july_2020/

image link (what you get via bdfr, 48.3mb): https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fv4v7m9hvjdwb1.gif

mp4 link (1.6mb): https://preview.redd.it/v4v7m9hvjdwb1.gif?format=mp4&s=394dae750a371f6ac3c88486f40e415907c84829

I'm wondering if bdfr can download the mp4 instead of the gif? If I convert them to mp4 after the fact and maintain the metadata/timestamps, bdfr will just redownload them because I've removed the original gif files (using no-dupes, calculating hashes, etc).

Environment (please complete the following information)