mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-12 15:48:31 +00: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))
|
property links : Array(Tuple(String, String, String))
|
||||||
end
|
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)
|
def get_about_info(ucid, locale)
|
||||||
result = YT_POOL.client &.get("/channel/#{ucid}/about?gl=US&hl=en")
|
result = YT_POOL.client &.get("/channel/#{ucid}/about?gl=US&hl=en")
|
||||||
if result.status_code != 200
|
if result.status_code != 200
|
||||||
|
@ -107,15 +107,6 @@ struct ChannelVideo
|
|||||||
end
|
end
|
||||||
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
|
class ChannelRedirect < Exception
|
||||||
property channel_id : String
|
property channel_id : String
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user