Fix 403 error by upgrading ytdl-core to latest version #149
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes the 403 status code error reported in the issue by upgrading
@distube/ytdl-coreto the latest official version.Problem
The app stopped working around September 21, 2025, with users encountering 403 status code errors when attempting to download YouTube videos. This is a recurring issue that happens when YouTube makes changes to their API or security measures.
Solution
Upgraded
@distube/ytdl-corefrom a fork (github:1ly4s0/ytdl-core) to the official latest version^4.16.12. This version includes the necessary fixes to handle recent YouTube API changes that were causing the 403 errors.Changes
github:1ly4s0/ytdl-coreto^4.16.12(latest official release)ytdl-coreentry that was pointing to the same forkTesting
Why This Works
YouTube periodically updates their API and security measures, which breaks ytdl-core. The maintainers of
@distube/ytdl-coreactively release updates to handle these changes. By upgrading to the latest version, we get all the recent fixes needed to work with YouTube's current implementation.This follows the established pattern for fixing similar issues in this project - upgrading ytdl-core when YouTube makes breaking changes.
Original prompt
Fixes #148
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.