mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-14 06:10:35 +05:30
Add '&list' to videos shown on mix page
This commit is contained in:
parent
80bc29f3cd
commit
c72b9bea64
@ -6,6 +6,7 @@ class MixVideo
|
|||||||
ucid: String,
|
ucid: String,
|
||||||
length_seconds: Int32,
|
length_seconds: Int32,
|
||||||
index: Int32,
|
index: Int32,
|
||||||
|
mixes: Array(String),
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -59,7 +60,8 @@ def fetch_mix(rdid, video_id, cookies = nil)
|
|||||||
author,
|
author,
|
||||||
ucid,
|
ucid,
|
||||||
length_seconds,
|
length_seconds,
|
||||||
index
|
index,
|
||||||
|
[rdid]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<p><%= number_with_separator(item.video_count) %> videos</p>
|
<p><%= number_with_separator(item.video_count) %> videos</p>
|
||||||
<p>PLAYLIST</p>
|
<p>PLAYLIST</p>
|
||||||
<% when MixVideo %>
|
<% 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 %>
|
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<img style="width:100%;" src="/vi/<%= item.id %>/mqdefault.jpg"/>
|
<img style="width:100%;" src="/vi/<%= item.id %>/mqdefault.jpg"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user