npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pl2mp3

v1.1.0

Published

Watches Youtube Playlists and automatically downloads & converts them to mp3

Downloads

3

Readme

pl2mp3 npm version

👀 Watches Youtube Playlists and automatically downloads & converts them to mp3

pl2mp3 will watch multiple YT playlists to download newly added videos and convert them to MP3. Ideal for music or podcast playlists.

Install pl2mp3:

npm install -g pl2mp3

Usage:

Usage
  $ pl2mp3 <Download Directory>

Options
  --init, -i  create a new download Directory
  --update <mins>, -u <min>   check for playlist updates every <min> mins. Default 10min
  --reset, -r resets database, removes downloaded videos

Examples
  $ pl2mp3 --init <Download Directory> // to create a new download Directory
  $ pl2mp3 <Download Directory> // to start watching for new videos
  $ pl2mp3 --update 20 <Download Directory> // to watch every 20min for changes.

Setup:

Setup Download folder:

  • In order to use pl2mp3, you first have to create a download Directory. This Directory will be used by pl2mp3 to download and convert new videos. Run the following command to create a new download Directory
pl2mp3 --init <Directory name>
  • This will create a new directory with a db.json file and a config.json file.

Setup config.json:

  • After running the --init command, pl2mp3 created a config.json file. The config.json file is used to specify the playlists you want to download and other options.
  • When adding new playlists to the config.json, make sure that the Youtube playlists are public.

Sample config:

  • The following config will download and watch two Playlists.
{
  "playlists": [
      {
          "link": "https://www.youtube.com/playlist?list=PLfpHPxe91z9NEwLMsxfmAehlZnoTzRFB8"
      },
      {
          "link": "https://www.youtube.com/playlist?list=PLfpHPxe91z9OsVABLuXljh78LwiP8ToXq"
      }
  ]
}

Split option:

  • You can add the following option to split mp3s into smaller clips
{
  "playlists": [
      {
          "link": "https://www.youtube.com/playlist?list=PLfpHPxe91z9NEwLMsxfmAehlZnoTzRFB8",
          "split":true,
          "split-duration":"03:00"
      }
  ]
}

*This will split every mp3 file into 3 min clips, with proper names.

Start pl2mp3:

  • After creating a Download Directory and customizing the config.json you can start pl2mp3 with the following command:
pl2mp3 <Directory name>
  • pl2mp3 will create a separate folder for each playlist and will start downloading and converting all videos inside the playlists.
  • After that pl2mp3 will look every 10 min for newly added videos to download them too. You can change the time by using the --update <min> flag.

About:

ICS © Julian Beck