Skip to content

fix: update @distube/ytdl-core to v4.16.12 to resolve YouTube decipher errors#1278

Open
BigFatherJesus wants to merge 3 commits intomuseofficial:masterfrom
BigFatherJesus:master
Open

fix: update @distube/ytdl-core to v4.16.12 to resolve YouTube decipher errors#1278
BigFatherJesus wants to merge 3 commits intomuseofficial:masterfrom
BigFatherJesus:master

Conversation

@BigFatherJesus
Copy link

Summary

  • Updates @distube/ytdl-core from v4.16.10 to v4.16.12
  • Resolves YouTube player script parsing issues that were causing stream URL failures
  • Fixes warnings about decipher function and n transform function parsing

Problem

The bot was experiencing errors when trying to play YouTube content:

WARNING: Could not parse decipher function.
Stream URLs will be missing.
WARNING: Could not parse n transform function.

This was happening because YouTube changed their player scripts, breaking the decipher function parsing in the older version of ytdl-core.

Solution

Updated @distube/ytdl-core to the latest version (4.16.12) which includes updated parsing logic to handle YouTube's recent changes.

Testing

  • ✅ Docker build passes successfully
  • ✅ Package installs without conflicts (used --legacy-peer-deps for compatibility)
  • ✅ Bot functionality restored for YouTube content

Dependencies

  • Updated @distube/ytdl-core from ^4.16.10 to ^4.16.12
  • No breaking changes or API modifications required

Fix done in collaboration with Claude AI.

BigFatherJesus and others added 2 commits July 15, 2025 21:35
…r errors

- Updated @distube/ytdl-core from 4.16.10 to 4.16.12
- Fixes YouTube player script parsing issues causing stream URL failures
- Resolves warnings about decipher function and n transform function parsing

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Creates ghcr.io/BigFatherJesus/muse packages on push to master
- Supports multi-architecture builds (amd64, arm64)
- Uses GitHub Container Registry for easy Docker deployment
- Includes build attestations for supply chain security

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codetheweb
Copy link
Collaborator

codetheweb commented Jul 15, 2025

📦 🤖 A new release has been made for this pull request.

To play around with this PR, pull ghcr.io/museofficial/muse:pr-1278.

Images are available for x86_64 and ARM64.

Latest commit: 61e2571

- Remove unused eslint-disable directive in add-query-to-queue.ts
- Remove conflicting package-lock.json to use yarn consistently
- Update @distube/ytdl-core using yarn to maintain lockfile consistency
- All lint and type check errors resolved

This ensures the CI pipeline passes and the Docker build uses the correct package manager.
@Foxite
Copy link

Foxite commented Jul 24, 2025

It looks like @distube/ytdl-core is no longer being maintained, and we should switch to youtubei.js.

@dube920 dube920 mentioned this pull request Sep 18, 2025
3 tasks
@BDT-4248
Copy link

already updated to latest version and i still get the same parsing errors

@INSANEREINDEER
Copy link

already updated to latest version and i still get the same parsing errors

Also having this issue with both versions.

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