invidious icon indicating copy to clipboard operation
invidious copied to clipboard

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

Open Fijxu opened this issue 1 year ago • 1 comments

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)

Fijxu avatar Feb 12 '24 20:02 Fijxu

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.

llsc12 avatar Feb 16 '24 00:02 llsc12