14 lines
223 B
Plaintext
14 lines
223 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
url=$1
|
||
|
|
||
|
echo $url
|
||
|
if [[ "$url" =~ "youtube" ]]; then
|
||
|
video_id=$(echo $url | sed 's#https://www.youtube.com/watch?v=##g')
|
||
|
echo $video_id
|
||
|
youtube.py $video_id
|
||
|
exit 0
|
||
|
|
||
|
fi
|
||
|
echo "not passed"
|