diff --git a/src/invidious/channels/about.cr b/src/invidious/channels/about.cr index 78679c75..17a43b0b 100644 --- a/src/invidious/channels/about.cr +++ b/src/invidious/channels/about.cr @@ -21,6 +21,15 @@ struct AboutChannel property links : Array(Tuple(String, String, String)) end +struct AboutRelatedChannel + include DB::Serializable + + property ucid : String + property author : String + property author_url : String + property author_thumbnail : String +end + def get_about_info(ucid, locale) result = YT_POOL.client &.get("/channel/#{ucid}/about?gl=US&hl=en") if result.status_code != 200 diff --git a/src/invidious/channels/channels.cr b/src/invidious/channels/channels.cr index 5b69ade1..a6ab4015 100644 --- a/src/invidious/channels/channels.cr +++ b/src/invidious/channels/channels.cr @@ -107,15 +107,6 @@ struct ChannelVideo end end -struct AboutRelatedChannel - include DB::Serializable - - property ucid : String - property author : String - property author_url : String - property author_thumbnail : String -end - class ChannelRedirect < Exception property channel_id : String