# pl2mp3

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

Latest version **1.1.0** (published 2019-03-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install pl2mp3
pnpm add pl2mp3
yarn add pl2mp3
bun add pl2mp3
```

Provides the command `pl2mp3`.

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-03-14 |
| First published | 2019-03-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 16 |
| Unpacked size | 16.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Julian Beck |
| Maintainers | jufabeck2202 |
| Keywords | Youtube, Youtube Playlist, Watcher, Automatic, to Mp3, Playlist to Mp3, split audio |

## Links

- npm: https://www.npmjs.com/package/pl2mp3
- Repository: https://github.com/jufabeck2202/pl2mp3
- Homepage: https://github.com/jufabeck2202/pl2mp3#readme
- npm.io page: https://npm.io/package/pl2mp3

## Dependencies (16)

- [ora](https://npm.io/package/ora.md) ^3.2.0
- [meow](https://npm.io/package/meow.md) ^5.0.0
- [ytpl](https://npm.io/package/ytpl.md) ^0.1.14
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [lowdb](https://npm.io/package/lowdb.md) ^1.0.0
- [upath](https://npm.io/package/upath.md) ^1.1.0
- [inquirer](https://npm.io/package/inquirer.md) ^6.2.2
- [ytdl-core](https://npm.io/package/ytdl-core.md) ^0.20.4
- [ffmetadata](https://npm.io/package/ffmetadata.md) ^1.5.0
- [node-ffprobe](https://npm.io/package/node-ffprobe.md) github:ListenerApproved/node-ffprobe
- [fluent-ffmpeg](https://npm.io/package/fluent-ffmpeg.md) ^2.1.2
- [node-notifier](https://npm.io/package/node-notifier.md) ^5.2.1
- [update-notifier](https://npm.io/package/update-notifier.md) ^2.5.0
- [sanitize-filename](https://npm.io/package/sanitize-filename.md) ^1.6.1
- [@ffmpeg-installer/ffmpeg](https://npm.io/package/@ffmpeg-installer/ffmpeg.md) ^1.0.15
- [@ffprobe-installer/ffprobe](https://npm.io/package/@ffprobe-installer/ffprobe.md) ^1.0.9

## Recent versions

- 1.1.0 (latest) — 2019-03-14
- 1.0.0 — 2019-03-14

## README

# pl2mp3  [![npm version](https://badge.fury.io/js/pl2mp3.svg)](https://badge.fury.io/js/pl2mp3)

> 👀 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**:

```shell
npm install -g pl2mp3
```
## Usage:
```shell
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

```shell
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.
```json
{
  "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
```json
{
  "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:
```shell
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](https://github.com/jufabeck2202)

---
_Source: https://npm.io/package/pl2mp3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
