Browse Source

Added debian installation support

master
Madiwka4 4 years ago
parent
commit
e816f520af
2 changed files with 31 additions and 6 deletions
  1. +20
    -3
      dependencies.sh
  2. +11
    -3
      readme.md

+ 20
- 3
dependencies.sh View File

@@ -1,3 +1,20 @@
sudo pacman -S python3 python-pip
pip install youtube-search
chmod +x spotitube.sh
echo "Your distro? ( 1)Arch, 2)Debian): "
read distro
if [ $distro -eq 1 ]
then
sudo pacman -S python3 python-pip mpv youtube-dl
pip install youtube-search
chmod +x spotitube.sh
elif [ $distro -eq 2 ]
then
sudo apt remove youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
youtube-dl -U
sudo apt install python3 python3-pip mpv
pip3 install youtube-search
chmod +x spotitube.sh
else
echo "You typed in: $distro"
echo "Wrong input, please type one of the two: (1/2)";
fi

+ 11
- 3
readme.md View File

@@ -2,13 +2,14 @@


Basically, a tool to listen to music using YouTube search results. Basically, a tool to listen to music using YouTube search results.
# Instalation # Instalation
FOR ARCH USERS ONLY STEP (SKIP IF OTHER OS):
This only supports Debian and Arch.
```shell ```shell
chmod +x dependencies.sh chmod +x dependencies.sh
./dependencies.sh ./dependencies.sh
``` ```
This will install the required dependencies (skip next step) This will install the required dependencies (skip next step)



# Prerequisites # Prerequisites


The dependencies.sh already handles the dependencies, but if you want to do it manually, then here you go. The dependencies.sh already handles the dependencies, but if you want to do it manually, then here you go.
@@ -21,11 +22,18 @@ Arch:
sudo pacman -S python3 python-pip sudo pacman -S python3 python-pip
pip install youtube-search pip install youtube-search
``` ```

Debian/ubuntu: Debian/ubuntu:
```shell ```shell
sudo apt install python3 pip3
pip3 install youtube-search
sudo apt remove youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
youtube-dl -U
sudo apt install python3 python3-pip mpv
pip3 install youtube-search
chmod +x spotitube.sh
``` ```
The Debian package of youtube-dl is old and doesnt play videos anymore. That is why you should use wget to install it manually.


# Usage # Usage




Loading…
Cancel
Save