Merge pull request #46 from omarroth/add-channel-rss

Add channel RSS
This commit is contained in:
Omar Roth 2018-07-28 20:45:01 -05:00 committed by GitHub
commit 7060c67328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 104 additions and 6 deletions

View file

@ -950,7 +950,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| %>