youtube-cue/README.md

57 lines
1.4 KiB
Markdown
Raw Normal View History

2021-05-30 15:31:27 +00:00
# youtube-cue
2017-06-07 20:26:45 +00:00
2021-06-01 07:09:54 +00:00
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.
2017-06-07 20:26:45 +00:00
## Dependencies
2021-05-30 15:31:27 +00:00
- None
2017-06-07 20:26:45 +00:00
## Installation
2021-05-30 15:31:27 +00:00
npm install -g youtube-cue
2017-06-07 20:26:45 +00:00
## Usage
2021-06-01 07:02:16 +00:00
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
2017-06-07 20:26:45 +00:00
2021-06-01 07:09:54 +00:00
## 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 .
}
```
2017-06-07 20:26:45 +00:00
## 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][mit]
[mit]: https://nemo.mit-license.org/
2017-06-07 20:30:26 +00:00
[rdd]: http://tom.preston-werner.com/2010/08/23/readme-driven-development.html