[GH-ISSUE #577] More descriptive /api/json response #35397

Closed
opened 2026-08-17 11:10:55 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @im-trisha on GitHub (Jun 17, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/577

describe the feature you'd like to see

  1. 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?

  2. 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

  1. Obviously the alternative is to strip it from the content-disposition header got after the GET request to /api/stream
  2. I mean, the alternative i see is just getting the file extension and elaborate from that? I'm not sure though

I hope this is not a stupid request nor has it already been asked.
Many thanks!

Originally created by @im-trisha on GitHub (Jun 17, 2024). Original GitHub issue: https://github.com/imputnet/cobalt/issues/577 **describe the feature you'd like to see** 1. 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? 2. 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** 1. Obviously the alternative is to strip it from the content-disposition header got after the GET request to /api/stream 2. I mean, the alternative i see is just getting the file extension and elaborate from that? I'm not sure though I hope this is not a stupid request nor has it already been asked. Many thanks!
GiteaMirror added the feature request label 2026-08-17 11:10:55 -05:00
GiteaMirror added the next major label 2026-08-17 11:13:17 -05:00
Sign in to join this conversation.