Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Couldn't resolve album url" for some reddit albums #60

Open
the-blank-x opened this issue Jan 15, 2023 · 0 comments
Open

"Couldn't resolve album url" for some reddit albums #60

the-blank-x opened this issue Jan 15, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@the-blank-x
Copy link
Contributor

Example album: https://www.reddit.com/gallery/10b485x

It seems like some images can fail to upload/process, and ImgurViewer does not handle it gracefully. Opening the album from a web browser and going to the failed image (the last/12th one) would show you its caption but it doesn't try to show the image, while gallery-dl just skips it (it outputs [reddit][warning] gallery 10b485x: skipping item ayazbocqbvba1 ('status: failed') for the offending image).

Example of a failed image:

> curl -L --no-progress-meter "https://reddit.com/comments/10b485x.json?raw_json=1" --user-agent awoo | jq '.[0].data.children[0].data.media_metadata["ayazbocqbvba1"]'
{
  "status": "failed"
}

Example of a successful/valid image:

> curl -L --no-progress-meter "https://reddit.com/comments/10b485x.json?raw_json=1" --user-agent awoo | jq '.[0].data.children[0].data.media_metadata["9b305qzpbvba1"]'
{
  "status": "valid",
  "e": "Image",
  "m": "image/jpg",
  [...snip...]
}
@SpartanJ SpartanJ self-assigned this Jan 15, 2023
@SpartanJ SpartanJ added the bug Something isn't working label Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants