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

Only show instances with api enabled when redirecting an api link #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

None yet

2 participants