Videos: Fix missing .id to retrieve first playlist video ID (#5366)

This commit is contained in:
syeopite 2025-08-23 03:30:00 -07:00
commit f35f529adc
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -20,7 +20,7 @@ module Invidious::Routes::Embed
return error_template(500, ex)
end
url = "/embed/#{first_playlist_video}?#{env.params.query}"
url = "/embed/#{first_playlist_video.id}?#{env.params.query}"
if env.params.query.size > 0
url += "?#{env.params.query}"