Metadata-Version: 2.4
Name: ytplaylist-downloader
Version: 0.1.4
Summary: A lightweight CLI tool to download audio from YouTube playlists
Author-email: Your Name <your.email@example.com>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/yt-playlist-dl
Project-URL: Repository, https://github.com/yourusername/yt-playlist-dl
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Classifier: Topic :: Multimedia :: Sound/Audio
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: yt-dlp>=2023.3.4
Dynamic: license-file

# yt-playlist-dl

A lightweight CLI tool to download audio from YouTube playlists and videos. Perfect for Termux on Android!

## Features

- 🎵 Download audio-only from YouTube playlists and individual videos
- 📦 Lightweight with minimal dependencies (just yt-dlp)
- 🚀 Simple command-line interface
- 📱 Works great on Android via Termux
- 🎚️ Customizable audio format and quality

## Installation

### From PyPI (once published)

```bash
pip install yt-playlist-dl
```

### From source

```bash
git clone https://github.com/yourusername/yt-playlist-dl.git
cd yt-playlist-dl
pip install .
```

### On Termux (Android)

```bash
pkg install python ffmpeg
pip install yt-playlist-dl
```

## Usage

Download a playlist to the current directory:
```bash
ytdl "https://www.youtube.com/playlist?list=..."
```

Download to a specific directory:
```bash
ytdl -o ~/Music "https://www.youtube.com/playlist?list=..."
```

Download in different format with custom quality:
```bash
ytdl -f m4a -q 256 "https://www.youtube.com/playlist?list=..."
```

Download a single video:
```bash
ytdl "https://youtu.be/dQw4w9WgXcQ"
```

Download private playlists (like Liked videos) - extract cookies from browser:
```bash
# Make sure you're logged into YouTube in your browser first!
ytdl --cookies-from-browser chrome "https://www.youtube.com/playlist?list=LL"
# Works with: chrome, firefox, brave, edge, opera, safari, chromium, vivaldi
```

## Options

```
positional arguments:
  url                   YouTube playlist or video URL

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output directory (default: current directory)
  -f {mp3,m4a,opus,wav,flac}, --format {mp3,m4a,opus,wav,flac}
                        Audio format (default: mp3)
  -q QUALITY, --quality QUALITY
                        Audio quality in kbps (default: 192)
  -c COOKIES, --cookies COOKIES
                        Path to cookies.txt file for authentication
  --cookies-from-browser {chrome,firefox,brave,edge,opera,safari,chromium,vivaldi}
                        Extract cookies from browser (easiest way for private playlists!)
  -v, --version         show program's version number and exit
```

## Requirements

- Python 3.7+
- yt-dlp
- FFmpeg (for audio conversion)

On Termux, install FFmpeg with:
```bash
pkg install ffmpeg
```

## License

MIT License - feel free to use and modify!

## Contributing

Pull requests welcome! For major changes, please open an issue first.
