chromeCast-py/termux-url-opener

14 lines
250 B
Plaintext
Raw Permalink Normal View History

2022-01-01 17:21:46 +01:00
#!/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
2022-06-05 12:09:33 +02:00
python $HOME/chromeCast-py/youtube.py $video_id
2022-01-01 17:21:46 +01:00
exit 0
fi
echo "not passed"