Closed ghbook closed 1 year ago
This problem existed at least since blacklist
/whitelist
options where added and child extractors with the same category
got ignored by default. (c78aa175)
So, since Sep 11, 2020...
Curious.. Not something I've ever noticed. Well, I've never been a really heavy reddit user (downloader), but still, can't say that I remember anything in that regard.
preview.redd.it
is the wrong domain anyway for any "content" (i.e. image) post on reddit..
Will this only download the preview if the attached reddit media has been removed and no other hosting links(imgur, redgifs) have been found? Because we might run into an issue with duplicate filenames if the media is still available unless it's possible to add something like prev
to the filename of the previewed media that is downloaded.
Just tested this and unfortunately I am right, it does try to download media twice which is a problem if the media has not been removed since the preview is downloaded as a very low resolution thumb majority of the time.
Maybe we can somehow get the files belonging to preview.redd.it
named with a prev
at the end or something to differentiate them from the original full resolution files and prevent gallery-dl skipping due to duplicate filenames.
For example when gallery-dl comes across a redgifs link on reddit it will download the lower resolution preview and then download the full resolution file hosted on redgifs as well. If I was not using "'_reddit' in locals()":
I would have no idea this even happened and there would be no way for me to differentiate between the two files.
Let me know if you don't understand what i'm saying, posted my verbose log here as well. https://gist.github.com/cheese529/43c49205e7eede8926f8f8e19e7f3b73
I was downloading some images from reddit and found out that if reddit media url belongs to
preview.redd.it
downloader simply skips it.my config is just reddit client-id and token
here is an example: https://www.reddit.com/r/europe/comments/pm4531/the_name_of_your_country_in_estonian/
I am not sure if this is due to recent changes or the problem exists even before.
external-preview.redd.it
works fine:you can see
i.redd.it
also works: