commit d2d1eb609ecf1b8af1d53a102382fa0b5037f2b5 Author: alpcentaur Date: Wed May 8 21:42:53 2024 +0000 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..167576b --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +``` + _ _ _ + ___| |__ __ _ __| | _____ ___ __ | | __ _ _ _ +/ __| '_ \ / _` |/ _` |/ _ \ \ /\ / / '_ \| |/ _` | | | | +\__ \ | | | (_| | (_| | (_) \ V V /| |_) | | (_| | |_| | +|___/_| |_|\__,_|\__,_|\___/ \_/\_/ | .__/|_|\__,_|\__, | + |_| |___/ +``` + +By playing big platforms content, build a shadow of that big platform +on your local network. + +``` +╻ ╻┏━┓┏━┓┏━╸┏━╸ +┃ ┃┗━┓┣━┫┃╺┓┣╸ +┗━┛┗━┛╹ ╹┗━┛┗━╸ +``` + +Just type the following command specifying big platforms link and build +your shadowtube + +``` +bash play.bash https://youtu.be/RVFKDOr5aG0 ifwe-solnce.mp3 +``` diff --git a/ifwe - solnce [RVFKDOr5aG0].mp3 b/ifwe - solnce [RVFKDOr5aG0].mp3 new file mode 100644 index 0000000..e8da66d Binary files /dev/null and b/ifwe - solnce [RVFKDOr5aG0].mp3 differ diff --git a/play.bash b/play.bash new file mode 100644 index 0000000..818c07f --- /dev/null +++ b/play.bash @@ -0,0 +1,22 @@ +#!/bin/bash + +# Check if the user provided a URL as an argument +if [ $# -eq 0 ]; then + echo "Usage: $0 " + exit 1 +fi + + +# Assign the YouTube URL to a variable +youtube_url="$1" +shift + +# Download the audio using youtube-dl +youtube_file="$2" +yt-dlp --extract-audio --audio-format mp3 "$youtube_url" -o "$youtube_file" + +# Play the audio using ffmpeg +vlc "$youtube_file" + +# Remove the downloaded file +rm "$youtube_file"