mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Don't add playlist id for channel videos
This commit is contained in:
parent
2ba0063dc0
commit
45fa148380
2 changed files with 2 additions and 1 deletions
|
@ -1597,6 +1597,7 @@ get "/channel/:ucid" do |env|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
videos = extract_playlist(ucid, page)
|
videos = extract_playlist(ucid, page)
|
||||||
|
videos.each { |a| a.playlists.clear }
|
||||||
rescue ex
|
rescue ex
|
||||||
error_message = ex.message
|
error_message = ex.message
|
||||||
next templated "error"
|
next templated "error"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="pure-u-1 pure-u-md-1-4">
|
<div class="pure-u-1 pure-u-md-1-4">
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
<% if video.responds_to?(:playlists) %>
|
<% if video.responds_to?(:playlists) && !video.playlists.empty? %>
|
||||||
<% params = "&list=#{video.playlists[0]}" %>
|
<% params = "&list=#{video.playlists[0]}" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% params = nil %>
|
<% params = nil %>
|
||||||
|
|
Loading…
Reference in a new issue