Skip to content

Conversation

@ChunkyProgrammer
Copy link

@ChunkyProgrammer ChunkyProgrammer commented Oct 17, 2023

If redirecting an api url then instances that have the api disabled are filtered out.

An example of this being useful is the api documentation, there is a link to redirect an api url here: https://docs.invidious.io/api/#fields (which will redirect to this url: https://redirect.invidious.io/api/v1/videos/aqz-KE-bpKQ?fields=videoId,title,description&pretty=1 )

Before this PR, yewtu.be which has the api disabled would be shown when redirecting api urls. After this PR, yewtu.be is filtered out as well as any other future instances that decide to disable the api.

Test cases:
Redirect an api url:
yewtu.be is not shown

Redirect a video url:
yewtu.be is shown

@unixfox
Copy link
Member

unixfox commented Oct 17, 2023

Please write a description and give examples please.

@ChunkyProgrammer
Copy link
Author

Please write a description and give examples please.

Oups, sorry. I added a description

@ChunkyProgrammer ChunkyProgrammer force-pushed the only-show-instances-with-api-enabled-for-api-links branch from a0c1217 to 3abfb01 Compare February 22, 2024 17:10
@ChunkyProgrammer ChunkyProgrammer force-pushed the only-show-instances-with-api-enabled-for-api-links branch from 3abfb01 to 5b82af1 Compare May 19, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants