iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
15.91k stars 1.74k forks source link

[Bug] Channels API returns 0 in `joined` and `totalViews` keys. #4430

Open Fijxu opened 6 months ago

Fijxu commented 6 months ago

Describe the bug

When doing a request for any channel to the channels API (/api/v1/channels/<channelID>) the values of the keys joined and totalViews return 0 when they should return the date of the creation date of the channel and the total view count of the channel.

Steps to Reproduce

  1. Do a request for any channel on any instance, for example, the MrBeast channel: https://inv.nadeko.net/api/v1/channels/UCX6OQ3DkcsbYNE6H8uQQuVA | https://invidious.nerdvpn.de/api/v1/channels/UCX6OQ3DkcsbYNE6H8uQQuVA | https://invidious.fdn.fr/api/v1/channels/UCX6OQ3DkcsbYNE6H8uQQuVA
  2. Search for the joined key

Screenshots

image

Additional context This affects FreeTube details section in the about tab of the requested channel. It is supposed to return the Views and Joined details (as can be seen here: https://github.com/iv-org/invidious/pull/4294#issue-2011247300 . I could be wrong)

llsc12 commented 6 months ago

i believe this is due to the removal of the about tab, now you have to do a browse request to innertube with a continuation token but im not sure where this token comes from.