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/Play | |
EZown
Diffstat (limited to 'lib/action/Play')
| -rwxr-xr-x | lib/action/Play | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/action/Play b/lib/action/Play new file mode 100755 index 0000000..fa56bac --- /dev/null +++ b/lib/action/Play @@ -0,0 +1,11 @@ +#! /bin/bash + +source ./util/verify/cbd-https + +url="$(is_https_url_cbd "$1")" + +[[ "$url" = *"&list="* ]] && playlist="$(echo "$url" | awk -F '&list=' '{print $2}')" \ + && url="https://www.youtube.com/playlist?list=$playlist" + +mpv "$url" + |
