mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-22 16:29:10 -04:00
Move AboutRelatedChannel to channels/about.cr
This commit is contained in:
parent
01e837d526
commit
7dfcec3307
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user