[zsh] add function to extract all attachments from mkv file
This commit is contained in:
parent
aa669fd6da
commit
eb2697bafc
|
@ -152,6 +152,10 @@ function urlencode() {
|
||||||
python3 -c 'import urllib.parse; print(urllib.parse.quote(open(0, "rb").read()))'
|
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
|
# Audacious does not support symlinks; hack around that
|
||||||
function audacious-hack() {
|
function audacious-hack() {
|
||||||
(
|
(
|
||||||
|
|
Reference in a new issue