-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
More descriptive /api/json response #577
Comments
I have asked cobalt devs, they told me to get the file name on the http request (you can http HEAD to get the file name without needing to download the media) |
some code i did to get the filename: https://github.com/lostdusty/gualto/blob/eb43cdb54e59fd3acb46c499d39aedb7081f11b8/main.go#L264-L269 |
we could totally add the filename to stream response, i see how it can be useful |
@wukko and what about the api/json response? The endpoint are not as descriptive as they could get, so I'm not sure if its the correct endpoint, but I'd expect from this endpoint every info except the actual file. And what about the file type? |
@lostdusty seems wonderful! I'll use exactly that for the time being :) |
describe the feature you'd like to see
I was thinkering with the api, and i had to do an ugly workaround to get the filename, while as far as I'm able to see it could simply be provided in the /api/json request?
In the same way, while thinkering with the api, i found (somewhat) difficult to understand if the downloaded media is a video, or an audio file. Couldn't it be as easy as putting a boolean?
describe alternatives you've considered
I hope this is not a stupid request nor has it already been asked.
Many thanks!
The text was updated successfully, but these errors were encountered: