1.0.1 • Published 6 years ago

ytplaylist-dl v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

ytplaylist-dl

download entire YouTube playlists at once

Install

$ npm install ytplaylist-dl

Usage

const ytpdl = require('ytplaylist-dl');

(async () => {
    await ytpdl("https://www.youtube.com/playlist?list=PLfpHPxe91z9NEwLMsxfmAehlZnoTzRFB8", "Desktop",{format:"mp4"});

    let videos = await ytpdl("YouTube url....", "Desktop");
    //videos = [ "Desktop/Video1" , "Desktop/Video2", .....]
})();

API

ytpdl(url, output, options)

Downloads all videos from the playlist and saves them under the output Path. Returns a Promise with a path to all downloaded videos.

url

Type: string

Url to the YouTube Playlist. If the provided video is a normal YouTube video, the single video will be downloaded. Plalist urls can be

output

Type: string

Where to save the videos.

options

Type: Object

{
    format:"mp4"
    quality:"highest"
}
  • format The video format of the downloaded Videos.
  • quality The quality of the video see ytdl-core quality.

Related

License

MIT © Julian Beck