From 564e956ba4eeca662790ac4dc3def3b615bc38d9 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Mon, 11 Mar 2024 09:43:41 +0100 Subject: [PATCH] add info_json fn --- zsh/youtube-dl.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/youtube-dl.zsh b/zsh/youtube-dl.zsh index e753e77..c217d37 100644 --- a/zsh/youtube-dl.zsh +++ b/zsh/youtube-dl.zsh @@ -15,4 +15,10 @@ alias downloadYT="yt-dlp --write-thumbnail \ function downloadList() { cat $1 |xargs -I _ yt-dlp --downloader aria2c _ +} + +# info_json VIDEO_FILE +# View info.json from video file +function info_json() { + mkvextract -q attachments "$1" "1:/proc/self/fd/1"|jq . } \ No newline at end of file