From 7dfcec33078ab57834f39ff07a33a1adeb390d6f Mon Sep 17 00:00:00 2001 From: syeopite Date: Sun, 11 Jul 2021 02:31:47 -0700 Subject: [PATCH] Move AboutRelatedChannel to channels/about.cr --- src/invidious/channels/about.cr | 9 +++++++++ src/invidious/channels/channels.cr | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) 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