Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 tasks done
satohshi opened this issue Jan 13, 2025 · 5 comments · May be fixed by #6596
Open
6 tasks done

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

satohshi opened this issue Jan 13, 2025 · 5 comments · May be fixed by #6596
Assignees
Labels
B: text/string bug Something isn't working

Comments

@satohshi
Copy link

Guidelines

  • I have encountered this bug in the latest release of FreeTube.
  • I have encountered this bug in the official downloads of FreeTube.
  • I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • 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 satohshi added the bug Something isn't working label Jan 13, 2025
@github-project-automation github-project-automation bot moved this to To assign in Bug Reports Jan 13, 2025
@absidue
Copy link
Member

absidue commented Jan 13, 2025

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.

@satohshi
Copy link
Author

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

@ArthurKun21
Copy link

Build 5472 2a683a8

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

@SudharakaP
Copy link
Contributor

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

@SudharakaP
Copy link
Contributor

PR submitted at, #6596. With this change, "views" will not be shown when there's none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B: text/string bug Something isn't working
Projects
Status: To assign
Development

Successfully merging a pull request may close this issue.

4 participants