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

[patreon] download unsupported file format and turn it into an odd extension #268

Closed
ghost opened this issue May 18, 2019 · 3 comments
Closed

Comments

@ghost
Copy link

ghost commented May 18, 2019

Hi, every time I download a file with an unsupported file format, the file changes to a strange format, such as PSD becomes TXT, WMV becomes ASX. Is there a way to skip it? Or download it as the same extension?

@wankio
Copy link
Contributor

wankio commented May 19, 2019

use it with -g only link then using wget to download it, problem solved :)

@mikf
Copy link
Owner

mikf commented May 20, 2019

I think this is caused by download URLs with no file extensions like https://www.patreon.com/file?h=23404718&i=3015343. gallery-dl can handle these cases as well, but it relies on a sensible Content-Type header from the remote server and that is not always the case.

Patreon API responses also provide the original filename of the uploaded files and bb32a2d now uses those to get a filename extension. See if that helps.

@ghost
Copy link
Author

ghost commented May 20, 2019

yup, it helps, thanks

@ghost ghost closed this as completed May 20, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants