diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-10-06 22:22:50 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-10-06 22:22:50 -0500 |
| commit | c72b9bea64b999e22ecfccdbbebefd566dcefcd7 (patch) | |
| tree | 4aee1e3c632a4529d5e8012ea09ec227293f4cd4 | |
| parent | 80bc29f3cd83401321fdc7e909785c4fe2349448 (diff) | |
| download | invidious-c72b9bea64b999e22ecfccdbbebefd566dcefcd7.tar.gz invidious-c72b9bea64b999e22ecfccdbbebefd566dcefcd7.tar.bz2 invidious-c72b9bea64b999e22ecfccdbbebefd566dcefcd7.zip | |
Add '&list' to videos shown on mix page
| -rw-r--r-- | src/invidious/mixes.cr | 4 | ||||
| -rw-r--r-- | src/invidious/views/components/item.ecr | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/invidious/mixes.cr b/src/invidious/mixes.cr index e7e76b80..ef53ad4d 100644 --- a/src/invidious/mixes.cr +++ b/src/invidious/mixes.cr @@ -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 diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr index 1ffc6467..db319d82 100644 --- a/src/invidious/views/components/item.ecr +++ b/src/invidious/views/components/item.ecr @@ -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"/> |
