mirror of
https://github.com/iv-org/invidious.git
synced 2026-10-25 14:29:16 -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
|
locale, user, subscriptions, continuation, ucid, channel = data
|
||||||
|
|
||||||
|
if !channel.tabs.includes? "shows"
|
||||||
|
return env.redirect "/channel/#{channel.ucid}"
|
||||||
|
end
|
||||||
|
|
||||||
sort_by = ""
|
sort_by = ""
|
||||||
sort_options = [] of String
|
sort_options = [] of String
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user