Hide video count for auto-generated channels

This commit is contained in:
Omar Roth
2019-09-12 13:11:21 -04:00
parent 34c43b8349
commit 50d793e49b
3 changed files with 7 additions and 4 deletions

View File

@@ -185,8 +185,10 @@ struct SearchChannel
end
end
json.field "autoGenerated", self.auto_generated
json.field "subCount", self.subscriber_count
json.field "videoCount", self.video_count
json.field "description", html_to_content(self.description_html)
json.field "descriptionHtml", self.description_html
end
@@ -209,6 +211,7 @@ struct SearchChannel
subscriber_count: Int32,
video_count: Int32,
description_html: String,
auto_generated: Bool,
})
end