Skip to content
forked from mertoalex/song

song downloader (or mp3 downloader)

License

Notifications You must be signed in to change notification settings

automa1on/song-cmd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

song script

this script is downloads youtube links as mp3 to ~/Music folder

donate

donate link or this

how to install

git clone https://github.com/mertoalex/song.git
cd song
chmod +x install.sh
./install.sh

##if you install manually yt-dlp and ffmpeg (replace `sudo` with `doas` if you using `doas`)

#debian boi (replace `apt-get` with `nala` if you using `nala`)
sudo apt-get update
sudo apt-get install yt-dlp ffmpeg

#termux boi (source: https://github.com/yt-dlp/yt-dlp/wiki/Installation#android)
termux-setup-storage
apt-get update && apt-get upgrade
apt-get install libexpat openssl python ffmpeg
pip install -U yt-dlp

#arch boi
sudo pacman -Syy yt-dlp ffmpeg

#void Boi
sudo xbps-install yt-dlp ffmpeg

#openSussye boi
sudo zypper install yt-dlp ffmpeg

#fedora boi
sudo dnf install yt-dlp ffmpeg

#centOS or RHEL boi
sudo yum install yt-dlp ffmpeg

#gentoo Boi
USE="$USE mp3" sudo emerge --jobs $(nproc) --verbose --ask net-misc/yt-dlp media-video/ffmpeg

#Alpine BASED
sudo apk add yt-dlp ffmpeg

#pisi boi
sudo pisi install yt-dlp ffmpeg

after installition

first test song command

song

if output is

[E]: There is no link!

It's installed!

now you can delete song-cmd folder!!

cd ..
rm -rf song

how to use

command link

song {link} [file name]
#example
song https://youtu.be/dQw4w9WgXcQ
#or
song https://youtu.be/dQw4w9WgXcQ cool-song

Troubleshoting

song command not found (termux)

you should att $PREFIX/local/bin to path this code makes that

export SHELL="SHELL_NAME" # replace `SHELL_NAME` with your shell, e.g. bash, zsh, fish, dash, csh etc.
echo -e "\n"'export PATH="$PREFIX/local/bin:$PATH"' >> ~/${SHELL}rc # I think It's work on most shells.

About

song downloader (or mp3 downloader)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%