Skip to content

Commit beb91d1

Browse files
committed
feat(download): add yt-dlp integration for video/audio/subtitle downloads
- Add new download.py module with yt-dlp wrapper for YouTube, TikTok, Twitter, and 1000+ sites - Implement URL validation and metadata extraction with error handling for private, geo-restricted, and age-restricted content - Add interactive CLI for format selection, quality preferences, and output customization - Support video, audio, subtitle, and thumbnail downloads with progress tracking - Include platform-specific yt-dlp installation instructions (macOS, Windows, Linux) - Add yt-dlp as optional dependency in pyproject.toml and requirements.txt - Integrate download feature into main peg_this CLI menu - Enables users to download and process content from multiple platforms before applying other features
1 parent 56c71b2 commit beb91d1

File tree

4 files changed

+1115
-0
lines changed

4 files changed

+1115
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dependencies = [
4848
# Heavy AI features (~1.5GB each, includes PyTorch)
4949
demucs = ["demucs>=4.0.0"]
5050
upscale = ["realesrgan>=0.3.0", "basicsr>=1.4.2"]
51+
download = ["yt-dlp>=2024.0.0"]
5152
all-ai = ["demucs>=4.0.0", "realesrgan>=0.3.0", "basicsr>=1.4.2"]
5253

5354
dev = [

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ deep-translator
1414
pathvalidate
1515
pydub
1616
requests
17+
yt-dlp

0 commit comments

Comments
 (0)