diff options
| author | LM-LCL <hello@exaltedelite.club> | 2023-04-19 21:23:42 +0200 |
|---|---|---|
| committer | LM-LCL <hello@exaltedelite.club> | 2023-04-19 21:23:42 +0200 |
| commit | b98f0f496b6739749257804297468fb71845a776 (patch) | |
| tree | 44096c59211f1d877515914273cde862fbf47c1f /lib/action/Clip | |
EZown
Diffstat (limited to 'lib/action/Clip')
| -rwxr-xr-x | lib/action/Clip | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/action/Clip b/lib/action/Clip new file mode 100755 index 0000000..d98cf0e --- /dev/null +++ b/lib/action/Clip @@ -0,0 +1,23 @@ +#! /bin/bash + +source ./util/verify/cbd-https +source ./util/menu/deasy-core +source ./util/dpath + +url="$(is_https_url_cbd "$1")" + +from="$(deasy_core 'From (00:00/n)')" +[ -z "$from" ] && exit 0 + +to="$(deasy_core 'To (00:00/n)')" +[ -z "$to" ] && exit 0 + +filename="$(deasy_core 'Filename')" +[ -z "$filename" ] && exit 0 + +ffmpeg -n \ + -ss "$from" \ + -to "$to" \ + -i "$(yt-dlp -f b --get-url "$url")" \ + "$DPATH/$filename.mp4" + |
