chromeCast-py/termux-url-opener

14 lines
250 B
Bash
Executable File

#!/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
python $HOME/chromeCast-py/youtube.py $video_id
exit 0
fi
echo "not passed"