Przeglądaj źródła

Added debian installation support

master
Madiwka4 4 lat temu
rodzic
commit
e816f520af
2 zmienionych plików z 31 dodań i 6 usunięć
  1. +20
    -3
      dependencies.sh
  2. +11
    -3
      readme.md

+ 20
- 3
dependencies.sh Wyświetl plik

@@ -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 Wyświetl plik

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

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


# Prerequisites

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
pip install youtube-search
```

Debian/ubuntu:
```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



Ładowanie…
Anuluj
Zapisz