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

Fix incompatibility with upcoming YouTube.js version #6233

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented Nov 25, 2024

Fix incompatibility with upcoming YouTube.js version

Pull Request Type

  • Bugfix

Related issue

LuanRT/YouTube.js#812

Description

The upcoming YouTube.js 12.0.0 update removes the *Endpoint constants and functions that we were using to build the payloads for the subscriptions page API calls. This pull request switches to just passing the information to the actions.execute() method directly (so doing what the builder function used to do ourselves), which makes FreeTube compatible with YouTube.js 12.0.0 and the change is also compatible with the current version of YouTube.js that we are using.

Testing

  1. Make sure you are using the local API with a profile with less than 125 subscriptions and with RSS disabled
  2. Refresh the videos, live and shorts tabs on the subscriptions page, they should work correctly

Desktop

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

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 25, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) November 25, 2024 18:17
@FreeTubeBot FreeTubeBot merged commit 4266fe1 into FreeTubeApp:development Nov 25, 2024
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 Nov 25, 2024
@absidue absidue deleted the youtubejs-compat branch November 25, 2024 22:33
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Nov 29, 2024
* development: (41 commits)
  Translated using Weblate (Afrikaans)
  Translated using Weblate (Portuguese)
  Translated using Weblate (Welsh)
  Translated using Weblate (Spanish)
  Translated using Weblate (Polish)
  Translated using Weblate (Urdu)
  Translated using Weblate (Chinese (Traditional Han script))
  Switch the data import to the Web File System API (FreeTubeApp#6222)
  Translated using Weblate (Serbian)
  Translated using Weblate (Basque)
  Translated using Weblate (Basque)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Basque)
  Translated using Weblate (French)
  Translated using Weblate (Italian)
  Translated using Weblate (Chinese (Simplified Han script))
  Bump electron from 32.2.5 to 33.2.0 (FreeTubeApp#6231)
  Fix incompatibility with upcoming YouTube.js version (FreeTubeApp#6233)
  Translated using Weblate (Estonian)
  Translated using Weblate (Portuguese (Brazil))
  ...
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