Browse Source

first commit

master
alpcentaur 5 months ago
commit
d2d1eb609e
3 changed files with 46 additions and 0 deletions
  1. +24
    -0
      README.md
  2. BIN
      ifwe - solnce [RVFKDOr5aG0].mp3
  3. +22
    -0
      play.bash

+ 24
- 0
README.md 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
```

BIN
ifwe - solnce [RVFKDOr5aG0].mp3 View File


+ 22
- 0
play.bash 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"

Loading…
Cancel
Save