iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.46k stars 1.85k forks source link

Videos: Fix missing host parameter on playback URLs when `local=true` #4992

Open SamantazFox opened 1 month ago

SamantazFox commented 1 month ago

In #4850, the host= parameter ceased to be added to videoplayback URLs by default, as it should only be added when the video is proxied through invidious.

This change revealed that some parts of the code didn't properly "proxify" the playback URL (= adding back that host= parameter) when local=true was passed to those endpoints.

Thanks to @Fijxu for raising that problem!