mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Move channel views to separate directory
This commit is contained in:
parent
c08b4c9a32
commit
f849cad4e2
6 changed files with 6 additions and 6 deletions
src/invidious
|
@ -38,7 +38,7 @@ module Invidious::Routes::Channels
|
||||||
count, items = get_60_videos(channel.ucid, channel.author, page, channel.auto_generated, sort_by)
|
count, items = get_60_videos(channel.ucid, channel.author, page, channel.auto_generated, sort_by)
|
||||||
end
|
end
|
||||||
|
|
||||||
templated "channel"
|
templated "channel/channel"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.playlists(env)
|
def self.playlists(env)
|
||||||
|
@ -59,7 +59,7 @@ module Invidious::Routes::Channels
|
||||||
items = items.select { |item| item.is_a?(SearchPlaylist) }.map { |item| item.as(SearchPlaylist) }
|
items = items.select { |item| item.is_a?(SearchPlaylist) }.map { |item| item.as(SearchPlaylist) }
|
||||||
items.each { |item| item.author = "" }
|
items.each { |item| item.author = "" }
|
||||||
|
|
||||||
templated "playlists"
|
templated "channel/playlists"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.community(env)
|
def self.community(env)
|
||||||
|
@ -88,7 +88,7 @@ module Invidious::Routes::Channels
|
||||||
return error_template(500, ex)
|
return error_template(500, ex)
|
||||||
end
|
end
|
||||||
|
|
||||||
templated "community"
|
templated "channel/community"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.channels(env)
|
def self.channels(env)
|
||||||
|
@ -126,7 +126,7 @@ module Invidious::Routes::Channels
|
||||||
featured_channel_categories = fetch_channel_featured_channels(ucid, channel.tabs["channels"], nil, nil).not_nil!
|
featured_channel_categories = fetch_channel_featured_channels(ucid, channel.tabs["channels"], nil, nil).not_nil!
|
||||||
end
|
end
|
||||||
|
|
||||||
templated "channels"
|
templated "channel/featured_channels"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.featured_channel_category(env)
|
def self.featured_channel_category(env)
|
||||||
|
@ -151,7 +151,7 @@ module Invidious::Routes::Channels
|
||||||
title = env.params.query["title"]?
|
title = env.params.query["title"]?
|
||||||
|
|
||||||
featured_channel_categories = fetch_channel_featured_channels(ucid, channel.tabs["channels"], category_param, continuation, title).not_nil!
|
featured_channel_categories = fetch_channel_featured_channels(ucid, channel.tabs["channels"], category_param, continuation, title).not_nil!
|
||||||
templated "channels"
|
templated "channel/featured_channels"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.about(env)
|
def self.about(env)
|
||||||
|
@ -172,7 +172,7 @@ module Invidious::Routes::Channels
|
||||||
next error_template(500, ex)
|
next error_template(500, ex)
|
||||||
end
|
end
|
||||||
|
|
||||||
templated "channel_about" end
|
templated "channel/about" end
|
||||||
|
|
||||||
# Redirects brand url channels to a normal /channel/:ucid route
|
# Redirects brand url channels to a normal /channel/:ucid route
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue