Add channel RSS

This commit is contained in:
Omar Roth 2018-07-28 08:24:53 -05:00
parent 829ffdd466
commit ac5dbadfc1
3 changed files with 104 additions and 6 deletions

View file

@ -895,7 +895,7 @@ def produce_playlist_url(ucid, index)
return url
end
def produce_videos_url(ucid, page)
def produce_videos_url(ucid, page = 1)
page = "#{page}"
meta = "\x12\x06videos \x00\x30\x02\x38\x01\x60\x01\x6a\x00\x7a"

View file

@ -2,7 +2,17 @@
<title><%= author %> - Invidious</title>
<% end %>
<h1><%= author %></h1>
<div class="pure-g" style="padding:1em;">
<div class="pure-u-2-3">
<h3><%= author %></h3>
</div>
<div class="pure-u-1-3" style="text-align:right;">
<h3>
<a href="/feed/channel/<%= ucid %>"><i class="fas fa-rss-square"></i></a>
</h3>
</div>
</div>
<% if user %>
<% if subscriptions.includes? ucid %>
<p>
@ -24,6 +34,7 @@
</a>
</p>
<% end %>
<% videos.each_slice(4) do |slice| %>
<div class="pure-g">
<% slice.each do |video| %>