Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Fixed youtu.be redirects#425

Open
HeIIow2 wants to merge 2 commits intoSimonBrazell:masterfrom
HeIIow2:fix/youtube_short_link
Open

Fixed youtu.be redirects#425
HeIIow2 wants to merge 2 commits intoSimonBrazell:masterfrom
HeIIow2:fix/youtube_short_link

Conversation

@HeIIow2
Copy link
Copy Markdown

@HeIIow2 HeIIow2 commented Sep 5, 2023

When going to https://youtu.be/dQw4w9WgXcQ and redirecting to invidious, the video doesn't open, because invidious can't handle it.

This is mentioned in #286

Current behaviour

https://youtu.be/dQw4w9WgXcQ --> https://yt.artemislena.eu/

Wanted behaviour

https://youtu.be/dQw4w9WgXcQ --> https://yt.artemislena.eu/watch?v=dQw4w9WgXcQ

Approach

  • if it is a shortened link and it has not the search parameter v do the following
  • set the search parameter v to the path, but strip all /
  • set the path to /watch
  • delete the search parameter si

I am unsure about the last step though. It looks cleaner if the search parameter si is gone, but I really don't know what it is used for, it didn't make any kind of different for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant