Add '&list' to videos shown on mix page

このコミットが含まれているのは:
Omar Roth 2018-10-06 22:22:50 -05:00
コミット c72b9bea64
2個のファイルの変更4行の追加2行の削除

ファイルの表示

@ -6,6 +6,7 @@ class MixVideo
ucid: String,
length_seconds: Int32,
index: Int32,
mixes: Array(String),
})
end
@ -59,7 +60,8 @@ def fetch_mix(rdid, video_id, cookies = nil)
author,
ucid,
length_seconds,
index
index,
[rdid]
)
end

ファイルの表示

@ -32,7 +32,7 @@
<p><%= number_with_separator(item.video_count) %> videos</p>
<p>PLAYLIST</p>
<% when MixVideo %>
<a style="width:100%;" href="/watch?v=<%= item.id %>">
<a style="width:100%;" href="/watch?v=<%= item.id %>&list=<%= item.mixes[0] %>">
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
<% else %>
<img style="width:100%;" src="/vi/<%= item.id %>/mqdefault.jpg"/>