media scwrypts v5 refactor
This commit is contained in:
12
scwrypts/media/youtube/get-filename.module.zsh
Normal file
12
scwrypts/media/youtube/get-filename.module.zsh
Normal file
@ -0,0 +1,12 @@
|
||||
#####################################################################
|
||||
|
||||
use youtube/yt-dlp --group media
|
||||
|
||||
#####################################################################
|
||||
|
||||
${scwryptsmodule}() {
|
||||
media.youtube.yt-dlp --dump-json $@ \
|
||||
| jq -r '._filename' \
|
||||
| sed 's/\.[^.]*$/\.mp4/' \
|
||||
;
|
||||
}
|
Reference in New Issue
Block a user