Skip to content

Download YouTube Music songs / videos with artist, title, & album cover tagging.

Notifications You must be signed in to change notification settings

adoreblvnk/YT_music_dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YT Music Downloader

Download YouTube Music songs / videos with artist, title, & album cover tagging.

Built With: yt-dlpFFmpegmutagen


Table of Contents

About

Download YouTube Music songs / videos with artist, title, & album cover tagging. Tags album name as title which can be incorrect but man's too lazy. Downloads & creates audio (mp3) thumbnail via yt-dlp & FFmpeg, creates ID3 tags via mutagen. Filenames are standardised in the following order: "artist1 x artist2 - song".

result

Known limitations:

  • Standardising works via regex, & regex splits artist & song name via "artist - song" (excluding YouTube Music songs).
  • Doesn't standardise certain title names (eg artist - song [music video]). Fixed by updating the regex but man's too lazy.

prod by blvnk.

Getting Started

Installation

  • Download FFmpeg & Python3
  • Clone this repo:
    git clone https://github.com/adoreblvnk/YT_music_dl.git

Usage

  • [Optional] Create & activate virtual environment
    python3 -m venv venv && source venv/bin/activate
  • Install dependencies
    python3 -m pip install -r requirements.txt
  • In main.py, edit the constants FOLDER (folder where songs are downloaded to) & URLS (list of YouTube URLS or a playlist).
  • Run the script
    python3 main.py

Credits

About

Download YouTube Music songs / videos with artist, title, & album cover tagging.

Topics

Resources

Stars

Watchers

Forks

Languages