mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-23 14:51:22 -05:00
[GH-ISSUE #707] Allow GET requests to the API via query string. #1824
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SmilerRyan on GitHub (Sep 1, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/707
Allow GET requests to the API via query string
Currently in order to use this for my needs, i need to have a direct url in order to download video/audio and i'd like the ability to not have to host my own relay to convert GET request (in my case with just a youtube video id) to a POST request, then redirect with the url provided.
Additional Context
For example, the Discord bot I use seems to work great when using a direct url to media rather to music now, so I have to run an API of my own that calls the Cobalt API purely to receive the URL and redirect the user to it.
Example Code
Here is how this currently looks like as a POST request vs a GET request.
@lostdusty commented on GitHub (Sep 1, 2024):
for anyone reading before the comment gets deleted, DO NOT run this on your computer, its malware.
@wukko spam ^ @dumbmoron
@wukko commented on GitHub (Sep 2, 2024):
we will not implement GET requests for main processing endpoint.