Skip to content

Conversation

Copy link

Copilot AI commented Oct 17, 2025

Fixes the 403 status code error reported in the issue by upgrading @distube/ytdl-core to 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-core from 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

  • Updated @distube/ytdl-core: Changed from github:1ly4s0/ytdl-core to ^4.16.12 (latest official release)
  • Removed duplicate dependency: Cleaned up the duplicate ytdl-core entry that was pointing to the same fork
  • Fixed tsconfig.json: Removed trailing comma causing JSON syntax error in tests

Testing

  • ✅ All existing tests pass
  • ✅ Build completes successfully
  • ✅ No security vulnerabilities in the new dependency
  • ✅ Code uses the official npm package which is actively maintained

Why This Works

YouTube periodically updates their API and security measures, which breaks ytdl-core. The maintainers of @distube/ytdl-core actively 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

This section details on the original issue you should resolve

<issue_title>Not working 10/16/2015</issue_title>
<issue_description>
September ‎21, ‎2025 was the last time it work. staus code 403

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Add logs from DevTools

Please go to y2mp3 menu -> Toggle Developer Tools or hit ctrl+Alt+j (on windows) or
++j (on mac), if there are error messages please include them.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • App Version [e.g. 1.0.1]

Additional context
Add any other context about the problem here.
</issue_description>

<agent_instructions>It's happened before. If you have access to previous PRs or commits, you'll see that usually the solution is to upgrade ytdl-core</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@moshfeu Thanks for reporting 🙏

Fixes #148


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] Fix status code 403 error that occurred on 09/21/2025 Fix 403 error by upgrading ytdl-core to latest version Oct 17, 2025
Copilot AI requested a review from moshfeu October 17, 2025 19:57
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.

Not working 10/16/2015

2 participants