Adds personal usage note

This commit is contained in:
Nemo 2021-06-01 12:39:54 +05:30
parent 67a2c1eb6b
commit 1530add88c
1 changed files with 17 additions and 1 deletions

View File

@ -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