From c72b9bea64b999e22ecfccdbbebefd566dcefcd7 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 6 Oct 2018 22:22:50 -0500 Subject: [PATCH] Add '&list' to videos shown on mix page --- src/invidious/mixes.cr | 4 +++- 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 @@

<%= number_with_separator(item.video_count) %> videos

PLAYLIST

<% when MixVideo %> - + <% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %> <% else %>