fix: check that shows tabs exists before trying to fetch/parse

This commit is contained in:
Cameron Radmore 2026-09-14 17:39:30 -04:00 committed by Fijxu
parent 5c5346974f
commit 49d3d3fb37
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -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