|
|
@ -30,7 +30,7 @@
|
|
|
|
var video_data = {
|
|
|
|
var video_data = {
|
|
|
|
id: '<%= video.id %>',
|
|
|
|
id: '<%= video.id %>',
|
|
|
|
plid: '<%= plid %>',
|
|
|
|
plid: '<%= plid %>',
|
|
|
|
length_seconds: '<%= video.info["length_seconds"].to_f %>',
|
|
|
|
length_seconds: <%= video.info["length_seconds"].to_f %>,
|
|
|
|
play_next: <%= !rvs.empty? && !plid && params.continue %>,
|
|
|
|
play_next: <%= !rvs.empty? && !plid && params.continue %>,
|
|
|
|
next_video: '<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>',
|
|
|
|
next_video: '<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>',
|
|
|
|
youtube_comments_text: '<%= HTML.escape(translate(locale, "View YouTube comments")) %>',
|
|
|
|
youtube_comments_text: '<%= HTML.escape(translate(locale, "View YouTube comments")) %>',
|
|
|
|