mirror of
https://github.com/captn3m0/dotfiles.git
synced 2024-09-28 13:22:54 +00:00
music dl updates
This commit is contained in:
parent
83414c24d6
commit
220b5fe741
@ -596,9 +596,16 @@ eval "$(starship init bash)"
|
|||||||
|
|
||||||
function ytdl.album() {
|
function ytdl.album() {
|
||||||
cd $(mktemp -d)
|
cd $(mktemp -d)
|
||||||
youtube-dl -f "bestaudio[ext=m4a]" --output "audio.m4a" "$1"
|
youtube-dl --quiet -f "bestaudio[ext=m4a]" --output "audio.m4a" "$1"
|
||||||
youtube-cue --audio-file "audio.m4a" "$1" tracks.cue
|
youtube-cue --audio-file "audio.m4a" "$1" tracks.cue
|
||||||
m4acut -C tracks.cue "audio.m4a" && \
|
m4acut -C tracks.cue "audio.m4a" && \
|
||||||
trash audio.m4a && \
|
trash audio.m4a && \
|
||||||
beet import -map .
|
beet import -map .
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function gaanadl.album() {
|
||||||
|
cd $(mktemp -d)
|
||||||
|
youtube-dl --quiet --autonumber-start 1 --add-metadata -o "%(autonumber)d - %(title)s.m4a" "$1"
|
||||||
|
beet import -map .
|
||||||
|
cd -
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user