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

[Enhancement] Support Invidious API #22

Open
ggtylerr opened this issue Dec 17, 2024 · 1 comment
Open

[Enhancement] Support Invidious API #22

ggtylerr opened this issue Dec 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ggtylerr
Copy link

ggtylerr commented Dec 17, 2024

Description
When sending a request to Invidious for a proxied video, you get a URL like this for its adaptive formats:

$ curl -s 'https://nyc1.iv.ggtyler.dev/api/v1/videos/2yJgwwDcgV8?local=true' | jq ".adaptiveFormats[0].url"
"https://nyc1.iv.ggtyler.dev/videoplayback?expire=1734441797..."

However, this URL will likely not work, as it's using Invidious' domain, not companion's. This means apps like FreeTube, PlasmaTube, Clipious, etc. won't work.

EDIT: It also looks like /api/v1/stats report that 0 requests are successful, which can mess with some uptime checkers.

Reproduction

  1. Make a GET request for any video (https://domain/api/v1/videos/:id?local=true)
  2. Try and use the URL given (under adaptiveFormats[i].url or formatStreams[i].url

Logs
N/A

@unixfox unixfox added the enhancement New feature or request label Dec 17, 2024
@unixfox unixfox changed the title [Bug] API giving incorrect domain [Enhancement] API giving incorrect domain Dec 17, 2024
@unixfox unixfox changed the title [Enhancement] API giving incorrect domain [Enhancement] Support Invidious API Dec 17, 2024
@unixfox
Copy link
Member

unixfox commented Dec 17, 2024

Renaming this to supporting Invidious API, something that it is not a priority as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Future
Development

No branches or pull requests

2 participants