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

Deviantart: Downloading jpg's instead of png's #5953

Closed
Loplaus555 opened this issue Aug 6, 2024 · 6 comments
Closed

Deviantart: Downloading jpg's instead of png's #5953

Loplaus555 opened this issue Aug 6, 2024 · 6 comments

Comments

@Loplaus555
Copy link

Sometimes I get png's but often, I get a jpg instead when downloading the image on deviantart itself makes it png. I also get these weird errors when it happens. Trying fallback URL #1/API responded with 400 Bad Request. My config file looks like this
"deviantart":
{
"client-id": "number",
"client-secret": "number",
"refresh-token": null,
"extra": false,
"public": false,
"flat": true,
"folders": false,
"journals": "html",
"mature": true,
"metadata": false,
"original": true,
"quality": "png",
"wait-min": 0

@mikf
Copy link
Owner

mikf commented Aug 7, 2024

Could you provide an example post where this happens?

"refresh-token": null,

You might just need a refresh-token to be able to access these .png files.

gallery-dl oauth:deviantart

@Loplaus555
Copy link
Author

I followed the steps here: gallery-dl https://www.deviantart.com/monk001/gallery

  1. I already registered my application, and my client-id and cilent-secret have the data.
  2. I use gallery-dl --clear-cache deviantart to clear my previous token and use gallery-dl oauth:deviantart to get a new one and use it in my configuration file.
  3. I get a new "An unexpected error occurred: KeyError - 'category' whether refresh-token has my token, is set to cache or even null.

@mikf
Copy link
Owner

mikf commented Aug 8, 2024

Sounds like you did everything necessary, but still: Could you please provide an example post where this happens, so that I can reproduce this issue for myself?

I get a new "An unexpected error occurred: KeyError - 'category' whether refresh-token has my token, is set to cache or even null.

DA removed some things and broke stuff while doing so. See #5961 and #5960.

@Loplaus555
Copy link
Author

@Hrxn
Copy link
Contributor

Hrxn commented Aug 9, 2024

@Loplaus555 Did you try it with master version with the latest commits?

@Loplaus555
Copy link
Author

@Hrxn Yes, that fixed my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants