Skip to content

Downloads all the videos from a Youtube Playlist and converts them into mp3 format.

License

Notifications You must be signed in to change notification settings

benkaiser/youtube-playlist-info

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Playlist Info

Youtube Playlist Info is a library that fetches all the information for the songs within a playlist then returns them as one big array. This abstracts away the annoying paging of requests that have to be done when handling the API manually.

The library does not currently emit progress events, however pull requests are welcome.

Usage

const ypi = require('youtube-playlist-info');
ypi("YouTube API Key", "Playlist ID").then(items => {
  console.log(items);
}).catch(console.error);

Options

  • maxResults - The maxmimum amount of results to return from the playlist, starting from 0.

Options Example

const ypi = require('youtube-playlist-info');
const options = {
  maxResults: 25
};
ypi("YouTube API Key", "Playlist ID", options).then(items => {
  console.log(items);
}).catch(console.error);

Installation

npm install --save youtube-playlist-info

Testing

set API_KEY=YouTube API Key
npm test

This should just spit out a bunch of items in the playlist followed by the length of the playlist.

About

Downloads all the videos from a Youtube Playlist and converts them into mp3 format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%