Skip to main content

CLI tool for searching YouTube/YTMusic and downloading audio/video from 1000+ platforms

Project description

fm-dlp — Download from YouTube, YTMusic, and 1000+ sites

Python PyPI License Platform Ruff

CLI tool for searching YouTube/YTMusic and downloading audio/video from 1000+ platforms

🚀 Quick Start

pip install fm-dlp                    # Python 3.10+ & FFmpeg required
fm-dlp config ~/Music                 # Set download directory
fm-dlp search "artist"                # Search tracks
fm-dlp download "URL" --codec flac    # Download audio

📋 Commands

search

fm-dlp search <query> [--limit 10] [--yt-video] [--album] [--raw] [--only-url] [--no-color]
Option Description
--limit N Maximum number of results (default: 10)
--yt-video Search YouTube videos instead of YouTube Music
--album Search for albums instead of individual tracks
--raw Output raw JSON/Python dict format
--only-url Output only URLs without any formatting
--no-color Disable colored output in search results

download

fm-dlp download <urls> [--codec CODEC] [--kbps 256] [--jobs 5] [--quiet] [--no-metadata] [--path PATH] [--cookies COOKIES] [--no-color]

URLs: Single, multiple (space/comma), or file path (one URL per line, # for comments)

Option Description
--codec Audio: mp3, aac, flac, m4a, opus, vorbis, wav, alac
Video: mp4, mkv, webm, mov, avi, flv
--kbps Audio bitrate 64–320 (default: 256)
--jobs Number of parallel downloads (default: 5)
--quiet Suppress yt-dlp output messages
--no-metadata Skip metadata and thumbnail embedding
--path Override download directory
--cookies Browser name (brave, chrome, chromium, edge, opera, vivaldi, whale, firefox, safari) or path to cookies file
--no-color Disable colored output in download messages

config

fm-dlp config <path> [--no-color]
Option Description
path Default download directory
--no-color Disable colored output in configuration messages

update

fm-dlp update [--no-color]

Self-update to the latest version from GitHub with automatic OS detection.

Option Description
--no-color Disable colored output in update messages
Behavior Description
Binary mode (PyInstaller) Downloads the appropriate executable for your OS (.exe on Windows, no extension on macOS/Linux) and replaces the current binary
Script mode (pip install) Updates the package via pip or uv (whichever is available, uv preferred for faster installation)

Features:

  • Automatic OS detection (Windows, macOS, Linux)
  • Always updates to the latest GitHub release (no version checking)
  • Cross-platform support
  • Fallback to pip if uv is not installed
  • Preserves executable permissions on Unix systems
  • Error handling with user-friendly messages:
    • GitHub API connection failures
    • Missing assets for current OS
    • Permission denied (with admin/sudo suggestion)
    • Package installation errors (with detailed output)

Note: The application may need to be restarted after updating, especially when running as a binary.

📄 License & Acknowledgments

MIT License — Built with:

Library Purpose
yt-dlp Download engine
ytmusicapi YouTube Music API
mutagen Metadata tagging
platformdirs Config paths
argss CLI framework

Author: Fkernel653

Project: GitHubPyPI

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fm_dlp-4.2.2.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fm_dlp-4.2.2-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file fm_dlp-4.2.2.tar.gz.

File metadata

  • Download URL: fm_dlp-4.2.2.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fm_dlp-4.2.2.tar.gz
Algorithm Hash digest
SHA256 c4bd198c41d3b4c4e98cac914be5c9478a156bf275b8474441c23c0d67d6b35b
MD5 a9cd7f697de39484b6d57a43ae7f590b
BLAKE2b-256 ea96dd09525c24252f8a78a36656a3c818b23cfed21287494a7ba091ae1a430a

See more details on using hashes here.

File details

Details for the file fm_dlp-4.2.2-py3-none-any.whl.

File metadata

  • Download URL: fm_dlp-4.2.2-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fm_dlp-4.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 279922cc53902c7ab56c047de907388bbe2b7d2c6a1089a91035bd61572393da
MD5 d6b819815faa04370c7bce025e0d633f
BLAKE2b-256 1f3e01c65dc661885321635388061d01bfc018fe6426c5350772586e2057415b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page