Skip to content

julianfbeck/ytplaylist-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ytplaylist-dl Build Status

download entire YouTube playlists at once

Install

$ npm install ytplaylist-dl

Usage

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

(async () => {
    let videos = await ytpdl("YouTube url....", "Desktop", options);
    //videos = [ "Desktop/Video1" , "Desktop/Video2", .....]

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

})();

API

ytpdl(url, output, [options])

Downloads all videos from the playlist and saves them under the output Path. Returns a Promise that holds an Array with all downloaded files.

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