[zsh] add function to extract all attachments from mkv file

legacy
Simon Bruder 2019-06-12 12:48:51 +00:00
parent aa669fd6da
commit eb2697bafc
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ function urlencode() {
python3 -c 'import urllib.parse; print(urllib.parse.quote(open(0, "rb").read()))'
}
function mkvextract-all-attachments() {
mkvextract $1 attachments $(mkvmerge --identify $1|grep 'Attachment ID'|sed 's/Attachment ID \([0-9]*\): .*/\1/')
}
# Audacious does not support symlinks; hack around that
function audacious-hack() {
(