mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.87k stars 976 forks source link

[Feature request] [reddit] add fallback url for some external links from reddit #3736

Open dajotim937 opened 1 year ago

dajotim937 commented 1 year ago

I didn't tested with many links but found this example: uv1t37 this post from reddit was submitted with redgifs link which is now 404 on redgifs site. BUT. Json file (just add .json at the end of link. Remove slash if it's there before add .json) from that post has preview->reddit_video_preview->fallback_url which has alive video from post but with worse bitrate (tested couple links with redgifs to compare).

dajotim937 commented 1 year ago

Also I wanted find out overhead fields from gallery-dl compare to original reddit json. There is few things: Post: 11npafn

  1. Original json from reddit has "category": null,. Don't know what it should store but it has been overrided with "category": "reddit",
  2. "thumbnail": "<link>", is overrided with "thumbnail": "nsfw",. Also because without user credential. My bad.
  3. Some other fields overrides too, but they don't really matter because couldn't contain any usefull info
  4. Couple bools also false instead of true, but I believe that because of downloading via gallery-dl without user credential.