瀏覽代碼

Added debian installation support

master
Madiwka4 5 年之前
父節點
當前提交
e816f520af
共有 2 個檔案被更改,包括 31 行新增6 行删除
  1. +20
    -3
      dependencies.sh
  2. +11
    -3
      readme.md

+ 20
- 3
dependencies.sh 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存