Go to file
Nemo 2c23c1c7aa Version Bump 2021-06-28 13:55:31 +05:30
.github Run tests on GitHub Actions 2021-06-09 19:10:14 +00:00
src [tests] Improve tests 2021-06-09 23:49:03 +05:30
test [tests] Improve tests 2021-06-09 23:49:03 +05:30
.editorconfig Initial commit 2017-06-08 01:44:09 +05:30
.gitignore Initial commit 2017-06-08 01:44:09 +05:30
.npmignore add npm ignore 2021-06-01 12:35:39 +05:30
CHANGELOG.md Version Bump 2021-06-28 13:55:31 +05:30
README.md Adds personal usage note 2021-06-01 12:41:51 +05:30
index.js switch to minimist arg parser 2021-06-10 00:21:23 +05:30
package-lock.json Version Bump 2021-06-28 13:55:31 +05:30
package.json Version Bump 2021-06-28 13:55:31 +05:30

README.md

youtube-cue

Helps you tag music compilations from youtube by generating a Cue sheet. Use alongside cuetag.sh, m4acut, or mp3splt or any other Cue sheet tooling.

Dependencies

  • None

Installation

npm install -g youtube-cue

Usage

Generates Cue sheet from Youtube URL

Usage
  $ youtube-cue --audio-file <youtube_url> <output.cue>

Options
  --help, Show help
  --version, Show version
  --audio-file, Input Audio File

Examples
  $ youtube-cue "https://www.youtube.com/watch?v=THzUassmQwE" output.cue
    output.cue saved

Personal Usage

I have this in my .bashrc to download, split, tag, and import albums:

function ytdl.album() {
  cd $(mktemp -d)
  youtube-dl -f "bestaudio[ext=m4a]" --output "audio.m4a" "$1"
  youtube-cue --audio-file "audio.m4a" "$1" tracks.cue
  m4acut -C tracks.cue "audio.m4a" && \
  trash audio.m4a && \
  beet import -map .
}

HACKING

  • If this video does not work on a specific video, please attach the debug log output
  • Pull Requests are welcome that add support for a better parser without breaking the existing tests
  • Please add tests for any new functionality

License

Licensed under the MIT License