Don't add playlist id for channel videos

このコミットが含まれているのは:
Omar Roth 2018-08-27 18:53:34 -05:00
コミット 45fa148380
2個のファイルの変更2行の追加1行の削除

ファイルの表示

@ -1597,6 +1597,7 @@ get "/channel/:ucid" do |env|
begin
videos = extract_playlist(ucid, page)
videos.each { |a| a.playlists.clear }
rescue ex
error_message = ex.message
next templated "error"

ファイルの表示

@ -1,6 +1,6 @@
<div class="pure-u-1 pure-u-md-1-4">
<div class="h-box">
<% if video.responds_to?(:playlists) %>
<% if video.responds_to?(:playlists) && !video.playlists.empty? %>
<% params = "&list=#{video.playlists[0]}" %>
<% else %>
<% params = nil %>