Skip to content

fix ytdl on linux#168

Merged
umutxyp merged 3 commits into
umutxyp:mainfrom
alexismdr:main
Jun 1, 2026
Merged

fix ytdl on linux#168
umutxyp merged 3 commits into
umutxyp:mainfrom
alexismdr:main

Conversation

@alexismdr

Copy link
Copy Markdown

for my part, the bot wasn't working on my Debian server (because of ytdl)
these few commits fix the issues
up to you whether or not to merge them

@umutxyp umutxyp merged commit e3c825e into umutxyp:main Jun 1, 2026
@umutxyp umutxyp requested a review from Copilot June 1, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the project’s YouTube/yt-dlp integration by centralizing yt-dlp options, adjusting download format selection, and updating related dependencies.

Changes:

  • Adds a jsRuntimes yt-dlp option (likely to improve JS extraction reliability) via shared options.
  • Switches the MusicPlayer download path to use YouTube.getYtDlpOptions(...) and updates the selected yt-dlp format.
  • Updates dependencies: bumps youtube-dl-exec and replaces ytdl-core with @distube/ytdl-core.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/YouTube.js Adds jsRuntimes to shared yt-dlp options.
src/MusicPlayer.js Reuses shared yt-dlp options and adjusts yt-dlp format selection.
package.json Updates downloader/core media dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/YouTube.js
retries: 3,
fragmentRetries: 3,
// User-Agent header ekle
jsRuntimes: `node:${process.execPath}`,
Comment thread src/MusicPlayer.js
Comment on lines +614 to +616
await youtubedl(downloadUrl, YouTube.getYtDlpOptions({
output: filepath,
format: 'bestaudio',
noCheckCertificates: true,
noWarnings: true,
format: 'bestaudio/best',
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.

3 participants