FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Videos with no views say "NaN views" instead of "0 views"

Open satohshi opened this issue 11 months ago • 6 comments

Guidelines

  • [X] I have encountered this bug in the latest release of FreeTube.
  • [X] I have encountered this bug in the official downloads of FreeTube.
  • [X] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • [X] I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • [X] This issue contains only one bug.

Describe the bug

When a video has 0 views, it says "NaN views".

Expected Behavior

It should say "0 views" instead of "NaN views".

Issue Labels

text/string issue

FreeTube Version

v0.22.1 Beta

Operating System Version

Windows 10

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

satohshi avatar Jan 13 '25 07:01 satohshi

Please provide details if you would like us to actually be able to do anything with this bug report. Which video? Where in the app did you see it? Do you have a screenshot or screen recording of it, if yes please provide it? How can we reproduce it/make the same problem happen on our end?

You also said the version you were using is 0.21.1 but then ticked the latest nightly box too, please clarify which version you are actually using as they are two very different things.

absidue avatar Jan 13 '25 07:01 absidue

Oops. Sorry, I didn't mean to check the last box. It's v0.22.1 Beta.

I originally saw this bug in the list of videos under "Subscriptions", but it appears to be the case for the "Search Results" page and the channel page too. The exact video now has views, but I found this channels with a video with 0 views. https://www.youtube.com/@animallover2338/videos

satohshi avatar Jan 13 '25 08:01 satohshi

Build 5472 2a683a874af75d14200fbea82aacedd17cc810c9

can confirm the search page

I was using sort by upload date since I was searching for a new video upload and came into this

image

ArthurKun21 avatar Jan 16 '25 02:01 ArthurKun21

I can fix this one; please feel free to assign 😸

SudharakaP avatar Jan 16 '25 17:01 SudharakaP

PR submitted at, https://github.com/FreeTubeApp/FreeTube/pull/6596. With this change, "views" will not be shown when there's none.

SudharakaP avatar Jan 16 '25 20:01 SudharakaP

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 18 '25 01:02 github-actions[bot]