first commit

This commit is contained in:
alpcentaur 2024-05-08 21:42:53 +00:00
commit d2d1eb609e
3 changed files with 46 additions and 0 deletions

24
README.md Normal file
View file

@ -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
```

Binary file not shown.

22
play.bash Normal file
View file

@ -0,0 +1,22 @@
#!/bin/bash
# Check if the user provided a URL as an argument
if [ $# -eq 0 ]; then
echo "Usage: $0 <youtube_url> <song_name>"
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"