FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
12.71k stars 780 forks source link

[Bug]: Duration is not displayed in Subscriptions page #5322

Closed lamborghinipth closed 2 weeks ago

lamborghinipth commented 1 month ago

Guidelines

Describe the bug

Reproduce:

  1. Create new profile (e.g named P)
  2. Subscribe some channels to profile P
  3. Click the Freetube logo on top bar
  4. See the bug 100

Expected Behavior

Duration is displayed in bottom right of each video's thumbnail 100

Issue Labels

content not loading, text/string issue, visual bug

FreeTube Version

v0.21.0

Operating System Version

Win 11 Pro

Installation Method

Portable

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

v0.21.0

Additional Information

None

Nightly Build

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 month ago

Hi @lamborghinipth how many channels are you subscribed to?

You can see this number on the Channels page

feather42 commented 1 month ago

I have this same problem, I'm subscribed to 800+ channels, the duration on subscription page is vital I often watch videos based on the duration fitting the time I have and swatch the longer ones later. Please please fix this.

absidue commented 1 month ago

@feather42 FreeTube automatically forces RSS when the currently selected profile has 125 or more subscriptions to avoid getting ratelimited. Unfortunately YouTube's RSS feeds don't include the video duration or live status. If FreeTube didn't force RSS, only about 130-160 channels would get fetched before you would hit YouTube's ratelimit and you would just get errors for the remaining 640-670 channels.

If you don't want to use RSS, split your subscriptions up into different smaller profiles or drastically reduce you subscriptions.

lamborghinipth commented 1 month ago

@efb4f5ff-1298-471a-8973-3d47447115dc

Hi @lamborghinipth how many channels are you subscribed to?

You can see this number on the Channels page

Total more than 200 channels in more than 10 profiles. Means I have about 20 channels in each profiles.

@absidue

@feather42 FreeTube automatically forces RSS when the currently selected profile has 125 or more subscriptions to avoid getting ratelimited. Unfortunately YouTube's RSS feeds don't include the video duration or live status. If FreeTube didn't force RSS, only about 130-160 channels would get fetched before you would hit YouTube's ratelimit and you would just get errors for the remaining 640-670 channels.

If you don't want to use RSS, split your subscriptions up into different smaller profiles or drastically reduce you subscriptions.

I think I did as your suggestion. I split into profiles as I said above.

For example, I have profiles Sports that contain 16 channels. When I click on FreeTube logo while switching to profile Sports, the issue is still here right now.

I also check a single latest subscribed channel - the 211st channel I subscribed. It works properly. So duration only doesn't appear in Subscriptions page.

I think it is a bug.

absidue commented 1 month ago

@lamborghinipth

For example, I have profiles Sports that contain 16 channels. When I click on FreeTube logo while switching to profile Sports, the issue is still here right now.

If you refreshed your subscriptions with the all channels profile, which had too many subscriptions so got forced to use RSS and then switch to another profile without refreshing your subscriptions you will see the information that FreeTube fetched when you refreshed the all channels profile.

If you switch to your sports profile and then refresh your subscriptions you should see the video durations.

I also check a single latest subscribed channel - the 211st channel I subscribed. It works properly. So duration only doesn't appear in Subscriptions page.

That is entirely expected, when you visit a single channel directly FreeTube only has to fetch information for that specific channel from YouTube. The risk of getting ratelimited only exists on the subscriptions page, because FreeTube has to fetch information for every subscription in the profile at the same time, which is why it uses RSS if you have too many.

github-actions[bot] commented 2 weeks ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.