Skip to content

Downloads albums from YouTube and automatically fills them with metadata from Discogs

License

Notifications You must be signed in to change notification settings

Breadinator/ytmdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ytmdl

Crates.io docs.rs GitHub license

Usage

Just run the executable and it should bring up the GUI. I recommend running it from a console for logging.

The first screen prompts for a YouTube playlist link and a Discogs release link.

Hitting the "Scrape" button will scrape the data then bring you to the screen where you can modify information. Discogs escapes some characters (e.g. & becomes &) so you might want to change that, and if there are multiple artists with the same name it'll show up as something like "Artist (3)".

Hitting the "Download" button here will start the downloads. It won't respond while doing this, but will continue to log to the console (hence why I recommend running it from the console). This step took ~20s for a 6 track album for me, but sometimes it can take longer (I believe sometimes YouTube can be throttled if it detects suspicious behaviour).

Environment variables

  • RUST_LOG: see env_logger (if unset I've made it default to ytmdl, which will just print all logs from this module)
  • YTMDL_OUT_DIR: directory that the final mp3s will be (defaults to your downloads_directory/ytmdl/)
  • YTMDL_OVERWRITE: whether should overwrite or not (defaults to true)

Requirements

Installation

Releases

See GitHub releases

Build from source

cargo install ytmdl

or

cargo install --git https://github.com/Breadinator/ytmdl

Todo

  • Automatically get the specific Discogs release page from the master page if provided
  • If it fails to scrape discogs, just procede with empty data
  • Scrape Discogs for data on specific songs (e.g. composers)
  • Scrape the full album date (not in the JSON block currently parsed but is present on the site)

About

Downloads albums from YouTube and automatically fills them with metadata from Discogs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages