summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2024-02-12 22:23:44 +0100
committerSamantaz Fox <coding@samantaz.fr>2024-02-12 22:23:44 +0100
commitf32764c840216f403ad73e09f0dde9c4a997f530 (patch)
tree3ee5e69510147f7d2fbd7aee4ba784fe694ac352 /src
parentd30dae43fe4ed04a2feb6ba30fb05ba01b54ef8d (diff)
parent87a8207f370f20582d6330d9fcf4346fbb4e1ae5 (diff)
downloadinvidious-f32764c840216f403ad73e09f0dde9c4a997f530.tar.gz
invidious-f32764c840216f403ad73e09f0dde9c4a997f530.tar.bz2
invidious-f32764c840216f403ad73e09f0dde9c4a997f530.zip
HTML: Preserve playlist in "Watch on YouTube" link (#4342)
It seems that at some point, Youtube changed the URL parameter from `plid` to `list` and we didn't notice. This fixes that. Closes #3929
Diffstat (limited to 'src')
-rw-r--r--src/invidious/views/watch.ecr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
index 1b020321..7a1cf2c3 100644
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@ -118,7 +118,7 @@ we're going to need to do it here in order to allow for translations.
link_yt_embed = URI.new(scheme: "https", host: "www.youtube.com", path: "/embed/#{video.id}")
if !plid.nil? && !continuation.nil?
- link_yt_param = URI::Params{"plid" => [plid], "index" => [continuation.to_s]}
+ link_yt_param = URI::Params{"list" => [plid], "index" => [continuation.to_s]}
link_yt_watch = IV::HttpServer::Utils.add_params_to_url(link_yt_watch, link_yt_param)
link_yt_embed = IV::HttpServer::Utils.add_params_to_url(link_yt_embed, link_yt_param)
end