switch to innertube API for about channels (#2255)

This commit is contained in:
Émilien Devos
2021-08-13 01:00:26 +02:00
committed by GitHub
parent f2b69fd812
commit 12b46bbd41
6 changed files with 9 additions and 43 deletions

View File

@@ -1338,7 +1338,6 @@ get "/feed/channel/:ucid" do |env|
description_html: description_html,
length_seconds: 0,
live_now: false,
paid: false,
premium: false,
premiere_timestamp: nil,
})
@@ -2154,7 +2153,6 @@ get "/api/v1/channels/:ucid" do |env|
json.field "subCount", channel.sub_count
json.field "totalViews", channel.total_views
json.field "joined", channel.joined.to_unix
json.field "paid", channel.paid
json.field "autoGenerated", channel.auto_generated
json.field "isFamilyFriendly", channel.is_family_friendly