Closed error1852 closed 1 year ago
I can confirm this behavior, I am having the same issue. Very unlucky that I just found out about it after spending days archiving for imgur links lol
Can you post a case example? Most the posts I can find with deleted users also have zero information in the post itself.
Use this link, it is NSFW tho so fair heads up. https://www.reddit.com/r/cumsluts/comments/otvq6n/love_that_lip_curl/
Use this link, it is NSFW tho so fair heads up. https://www.reddit.com/r/cumsluts/comments/otvq6n/love_that_lip_curl/
It's working fine with my config. I think it may be skipping because you're trying to extract authors and there is no author in those cases. Try removing the "author" related code and give it another go.
I think it may be skipping because you're trying to extract authors and there is no author in those cases. Try removing the "author" related code and give it another go.
I'm not trying to extract authors though.
This is what my Reddit/Redgifs section looks like.
"reddit": { "filename": "{title} {date:%Y-%m-%d} {id}{num:?_//}.{extension}", "comments": 0, "morecomments": false, "date-min": 0, "date-max": 253402210800, "date-format": "%Y-%m-%dT%H:%M:%S", "id-min": null, "id-max": null, "recursion": 0, "videos": "ytdl",
"parent-directory": true, "parent-metadata": "_reddit"
}, "redgifs": { "filename": { "'_reddit' in locals()": "{_reddit[title]} {_reddit[date]:%Y-%m-%d} {_reddit[id]}.{extension}" },
"format": ["hd", "sd", "gif"]
Still doesn't work for me, unfortunately, even with your settings.
@error1852 are you using yt-dl? It works if you change "videos":"ytdl",
to just "videos": true,
Assuming this is a bug with yt-dlp looking to add author metadata but not finding anything so therefore it just skips the download, seems like a bug that @mikf would have to look into.
Very unlucky because I use my yt-dlp config in tangent with gallery-dl to download reddit video thumbnails as well.
Not to my knowledge. My full config looks like this:
{
"extractor":
{
"base-directory": "./gallery-dl/",
"parent-directory": false,
"postprocessors": null,
"archive": null,
"cookies": null,
"cookies-update": true,
"proxy": null,
"skip": true,
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0",
"retries": 4,
"timeout": 30.0,
"verify": true,
"fallback": true,
"sleep": 0,
"sleep-request": 0,
"sleep-extractor": 0,
"path-restrict": "auto",
"path-replace": "_",
"path-remove": "\\u0000-\\u001f\\u007f",
"path-strip": "auto",
"path-extended": true,
"extension-map": {
"jpeg": "jpg",
"jpe" : "jpg",
"jfif": "jpg",
"jif" : "jpg",
"jfi" : "jpg"
},
"gfycat":
{
"filename": "{date} {title}-{id}.{extension}",
"directory": ["{subreddit}", "{author}"],
"format": ["mp4", "webm", "mobile", "gif"]
},
"imgur":
{
"mp4": true,
"filename": "{date} {title}-{id}.{extension}",
"directory": ["{subreddit}", "{author}"]
},
"reddit":
{
"comments": 0,
"morecomments": false,
"date-min": 0,
"date-max": 253402210800,
"date-format": "%Y-%m-%dT%H:%M:%S",
"id-min": null,
"id-max": null,
"recursion": 0,
"videos": true,
"filename": "{date} {title}-{id}.{extension}",
"directory": ["{subreddit}", "{author}"],
"parent-directory": false,
"parent-metadata": true,
"blacklist": ["tumblr"]
},
"redgifs":
{
"filename": "{date} {title}-{id}.{extension}",
"directory": ["{subreddit}", "{author}"],
"format": ["hd", "sd", "gif"]
}
},
"downloader":
{
"filesize-min": null,
"filesize-max": null,
"mtime": true,
"part": true,
"part-directory": null,
"progress": 3.0,
"rate": null,
"retries": 4,
"timeout": 30.0,
"verify": true,
"http":
{
"adjust-extensions": true,
"chunk-size": 32768,
"headers": null,
"validate": true
},
"ytdl":
{
"format": null,
"forward-cookies": false,
"logging": true,
"module": null,
"outtmpl": null,
"raw-options": null
}
},
"output":
{
"mode": "auto",
"progress": true,
"shorten": true,
"ansi": false,
"colors": {
"success": "1;32",
"skip" : "2"
},
"skip": true,
"log": "[{name}][{levelname}] {message}",
"logfile": null,
"unsupportedfile": null
},
"netrc": false
}
Using the default config lets me download redgifs from [deleted] users, but imgur still doesn't work.
Here is an imgur example.
Not to my knowledge. My full config looks like this:
alright that is very strange indeed.
Using the default config lets me download redgifs from [deleted] users, but imgur still doesn't work.
What's the difference between both configs that you think is causing this behavior? You can use notepad++ to compare both simultaneously
It could be because I didn't have an extractor for ytdl, but that still doesn't explain why imgur won't play ball.
That imgur example you gave doesn't work with any of my configs either. No clue why.
Here is an imgur example.
this photo is hosted on reddit, not imgur. if you open the link it takes you to reddit CDN
What? The image is hosted on imgur.
Yes, it's hosted on Imgur. Guys please make sure that we're actually on the same page here, otherwise it's pointless to even try to reproduce anything..
After manually testing a number of imgur links with [deleted] authors, it seems like only some of them refuse to work.
Weirdly enough, downloading them straight from imgur works just fine.
The Reddit API response for this thread does not include any external links, meaning gallery-dl does not and cannot see any imgur URL and therefore does not try to download it.
I have no idea why the API behaves like this and how to "fix" it. Logging in / Using a private OAuth access token doesn't help.
@mikf I'm guessing there's nothing to be done on my end, so I'm closing the issue.
This only happens with child extractors when the user who posted the link is [deleted]. Links that are hosted by reddit download just fine, but links that are hosted elsewhere just don't seem to register at all - it just moves on to the next line.