Skip to content

Updated youtube-dl-exec, added deno js runtime#757

Open
DeltaCream wants to merge 1 commit intomiraclx:masterfrom
DeltaCream:master
Open

Updated youtube-dl-exec, added deno js runtime#757
DeltaCream wants to merge 1 commit intomiraclx:masterfrom
DeltaCream:master

Conversation

@DeltaCream
Copy link
Copy Markdown

freyr-js has not been updated in a very long time. This is not intended as a comprehensive patch that will put it in an up-to-date, bleeding-edge state. Rather, this patch is intended to solve the key problems of using it to download songs from Spotify. Here are the following changes and why it was deliberately made that way:

  • kept @ffmpeg/core strictly at version 0.11.0. Based from npm's repository, this is the only version of @ffmpeg/core that is in minor version 0.11. That means that the update after it is minor version 0.12 onwards, which has breaking changes.
  • updated @ffmpeg/ffmpeg strictly at version 0.11.6. Same idea as the change above.
  • updated youtube-dl-exec to v3.0.28: this is the underlying library used to interface with yt-dlp, and as such, needs to be updated.
  • src/services/youtube.js updated to have the youtubedl object instantiation have the jsRuntime parameter (deno in this PR). As for why it uses deno, it is the most recommended external JavaScript runtime for use with yt-dlp. The details for this is listed here: [Announcement] External JavaScript runtime now required for full YouTube support yt-dlp/yt-dlp#15012

freyr-js has not been updated in a very long time. This is not intended as a comprehensive patch that will put it in an up-to-date, bleeding-edge state. Rather, this patch is intended to solve the key problems of using it to download songs from Spotify. Here are the following changes and why it was deliberately made that way:

- kept @ffmpeg/core *strictly* at version 0.11.0. Based from npm's repository, this is the only version of @ffmpeg/core that is in minor version 0.11. That means that the update after it is minor version 0.12 onwards, which has breaking changes.
- updated @ffmpeg/ffmpeg *strictly* at version 0.11.6. Same idea as the change above.
- updated youtube-dl-exec to v3.0.28: this is the underlying library used to interface with yt-dlp, and as such, needs to be updated.
- src/services/youtube.js updated to have the youtubedl object instantiation have the jsRuntime parameter (deno in this case). As for why it uses deno, it is the most recommended external JavaScript runtime for use with yt-dlp. The details for this is listed here:
yt-dlp/yt-dlp#15012
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.

1 participant