mirror of
https://github.com/iv-org/invidious.git
synced 2026-10-24 22:09:13 -05:00
fix: check that shows tabs exists before trying to fetch/parse
This commit is contained in:
parent
5c5346974f
commit
49d3d3fb37
@ -223,6 +223,10 @@ module Invidious::Routes::Channels
|
||||
|
||||
locale, user, subscriptions, continuation, ucid, channel = data
|
||||
|
||||
if !channel.tabs.includes? "shows"
|
||||
return env.redirect "/channel/#{channel.ucid}"
|
||||
end
|
||||
|
||||
sort_by = ""
|
||||
sort_options = [] of String
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user