Skip to content

Conversation

@absidue
Copy link
Member

@absidue absidue commented Jan 25, 2025

Avoid logging an error when a player cache entry does not exist

Pull Request Type

  • Bugfix

Description

When a player cache entry doesn't exist, we currently log Node.js' ENOENT error, which just means "error no entry", which will occur every now and then, as the player IDs change when YouTube updates their player JavaScript. On various occasions users have seen these error messages and thought they meant that something was wrong, so lets not log them to avoid confusing users.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: ec3b153

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) January 25, 2025 17:23
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 25, 2025
@FreeTubeBot FreeTubeBot merged commit 32988b1 into FreeTubeApp:development Jan 27, 2025
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 27, 2025
@absidue absidue deleted the player-cache-log branch January 27, 2025 06:35
SudharakaP pushed a commit to SudharakaP/FreeTube that referenced this pull request Jan 28, 2025
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Jan 29, 2025
* development: (35 commits)
  Shrink mime-db even further (FreeTubeApp#6659)
  * Update play next recommended video setting to be "by default" (FreeTubeApp#6400)
  Miscellaneous performance improvements (FreeTubeApp#6658)
  Bump stylelint in the stylelint group across 1 directory (FreeTubeApp#6660)
  Bump the stylelint group across 1 directory with 4 updates (FreeTubeApp#6605)
  Fixes FreeTubeApp#5476: Adjusted z-index for tooltips to avoid overlapping with bars (FreeTubeApp#6656)
  Bump shaka-player from 4.12.8 to 4.13.0 (FreeTubeApp#6649)
  Migrate ProfileSettings, FtProfileBubble and FtProfileEdit to the composition API (FreeTubeApp#6639)
  Translated using Weblate (Arabic)
  Bump the eslint group with 4 updates (FreeTubeApp#6645)
  Bump bgutils-js from 3.1.2 to 3.1.3 (FreeTubeApp#6650)
  Translated using Weblate (Arabic)
  Translated using Weblate (Arabic)
  Bump electron from 34.0.0 to 34.0.1 (FreeTubeApp#6648)
  Bump lefthook from 1.10.9 to 1.10.10 (FreeTubeApp#6647)
  Bump the babel group with 2 updates (FreeTubeApp#6644)
  Translated using Weblate (Arabic)
  Avoid logging an error when a player cache entry does not exist (FreeTubeApp#6640)
  Move saving screenshots to the default folder to an IPC call (FreeTubeApp#6636)
  Replace rimraf dev dependency with clean script (FreeTubeApp#6638)
  ...
OothecaPickle pushed a commit to OothecaPickle/FreeTube that referenced this pull request Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants