Skip to content

Commit

Permalink
Switch YouTube downloader core module (#12)
Browse files Browse the repository at this point in the history
These changes aim to maintain the functionality of the YouTube downloader by replacing the outdated `ytdl-core` module with the updated `@distube/ytdl-core` module, ensuring continued compatibility with YouTube's latest extraction algorithms. This update is crucial for the reliability and effectiveness of the YouTube download feature.

Signed-off-by: Ryuu Mitsuki <dhefam31@gmail.com>
  • Loading branch information
mitsuki31 committed Jul 20, 2024
2 parents cef4d05 + 5cb8663 commit d30008d
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 23 deletions.
4 changes: 2 additions & 2 deletions lib/ytmp3.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file Core library for **YTMP3** project.
*
* This module contains the core functionality for **YTMP3** project.
* It utilizes the [ytdl-core](https://www.npmjs.com/package/ytdl-core) (to download YouTube videos) and
* It utilizes the [@distube/ytdl-core](https://www.npmjs.com/package/@distube/ytdl-core) (to download YouTube videos) and
* [fluent-ffmpeg](https://www.npmjs.com/package/fluent-ffmpeg) (to convert audio formats) libraries.
*
* This module provides APIs to easily download YouTube videos (also supports YouTube Music) and convert them to MP3 format.
Expand Down Expand Up @@ -44,7 +44,7 @@
const fs = require('fs'), // File system module
os = require('os'), // OS module
path = require('path'), // Path module
ytdl = require('ytdl-core'); // Youtube Downloader module
ytdl = require('@distube/ytdl-core'); // Youtube Downloader module

const {
// eslint-disable-next-line no-unused-vars
Expand Down
129 changes: 110 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"url": "https://ko-fi.com/dhefam31"
},
"dependencies": {
"@distube/ytdl-core": "^4.13.5",
"argparse": "^2.0.1",
"fluent-ffmpeg": "^2.1.3",
"ytdl-core": "^4.11.5"
"fluent-ffmpeg": "^2.1.3"
},
"devDependencies": {
"eslint": "^8.54.0",
Expand Down

0 comments on commit d30008d

Please sign in to comment.