From 1530add88c1c1ea213f5b2083b8124a74df04d4f Mon Sep 17 00:00:00 2001 From: Nemo Date: Tue, 1 Jun 2021 12:39:54 +0530 Subject: [PATCH] Adds personal usage note --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6777ddd..489359a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # youtube-cue -Helps you tag music compilations from youtube by generating a Cue sheet. Use alongside [cuetag.sh](https://command-not-found.com/cuetag.sh). +Helps you tag music compilations from youtube by generating a Cue sheet. Use alongside [cuetag.sh](https://command-not-found.com/cuetag.sh), [m4acut](https://github.com/nu774/m4acut), or [mp3splt](https://sourceforge.net/p/mp3splt/) or any other Cue sheet tooling. ## Dependencies @@ -26,6 +26,22 @@ Helps you tag music compilations from youtube by generating a Cue sheet. Use alo $ 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: + +```shell +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