diff options
| author | Emilien <4016501+unixfox@users.noreply.github.com> | 2024-11-08 21:56:48 +0100 |
|---|---|---|
| committer | Emilien <4016501+unixfox@users.noreply.github.com> | 2024-11-09 22:21:09 +0100 |
| commit | f3e93ca83d21ab7e766d931c3985cf291e96ad3e (patch) | |
| tree | 4b879adccca128adc684f6f1a798dbc9aa645e63 | |
| parent | 82b1506cccc85ed4f3979d674a2754c35e0194fc (diff) | |
| download | invidious-f3e93ca83d21ab7e766d931c3985cf291e96ad3e.tar.gz invidious-f3e93ca83d21ab7e766d931c3985cf291e96ad3e.tar.bz2 invidious-f3e93ca83d21ab7e766d931c3985cf291e96ad3e.zip | |
revert back to www.youtube.com when client_config.screen embed
| -rw-r--r-- | src/invidious/yt_backend/youtube_api.cr | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/invidious/yt_backend/youtube_api.cr b/src/invidious/yt_backend/youtube_api.cr index e0a3181f..8f5aa61d 100644 --- a/src/invidious/yt_backend/youtube_api.cr +++ b/src/invidious/yt_backend/youtube_api.cr @@ -300,9 +300,8 @@ module YoutubeAPI end if client_config.screen == "EMBED" - # embedUrl https://www.google.com allow loading almost all video that are configured not embeddable client_context["thirdParty"] = { - "embedUrl" => "https://www.google.com/", + "embedUrl" => "https://www.youtube.com/embed/#{video_id}", } of String => String | Int64 end |
