Skip to content

Latest commit

 

History

History
55 lines (49 loc) · 3.6 KB

README.md

File metadata and controls

55 lines (49 loc) · 3.6 KB

SpotWrap

A graphical wrapper for Spotdl

Gallery

  • Album view : Screenshot
  • Song view : Screenshot
  • Artist view : Screenshot

How to download

You can download the latest release from the release page. Download the executable for your os, then just run it. For linux users, you have to have ffmpeg installed on your system !!

How to use

Paste your spotify song/album/playlist link to the search bar, hit enter, then you can select the output type and the quality you want. Then simply click on Download.

How to compile using pyinstaller and auto-py-to-exe

First you have to install the dependencies using pip, I recommend using a virtual environment

python -m venv venv

Then you have to activate the virtual environment:

  • on windows :
venv\Scripts\activate
  • on linux:
source venv/bin/activate

You have to install the dependencies using pip

pip install -r requirements.txt

After that you need to compile spotdl for your system using pyinstaller. You can find a config file for pyinstaller in the pyinstaller folder.

Then you have to compile the python file using pyinstaller: Here is a screenshot with all the options to use in auto-py-to-exe: Screenshot

  • For linux : If you use auto-py-to-exe you don't have to fill the "add-binary" section. Or if you want to use pyinstaller here is command on linux (use your own paths):
pyinstaller --noconfirm --onefile --windowed --icon "/home/dylan/Téléchargements/projets/spotwrap/assets/images/download_icon.png" --name "SpotWrap" --paths "/home/dylan/Téléchargements/projets/spotwrap/spotwrap_venv/lib/python3.8/site-packages" --paths "/home/dylan/Téléchargements/projets/spotwrap/spotwrap_venv/bin" --hidden-import "src" --hidden-import "src.utils" --hidden-import "src.controllers" --hidden-import "spotdl" --hidden-import "importlib._bootstrap" --hidden-import "pykakasi" --collect-submodules "spotdl" --collect-submodules "pykakasi" --collect-all "ytmusicapi" --collect-all "pykakasi"  "/home/dylan/Téléchargements/projets/spotwrap/main.py"

or use the config file in pyinstaller/config_linux.json

  • For Windows: you also have to bundle ffmpeg for the application to work (it's the add-binary section). Download ffmpeg binaries for your os from Here. Create a new directory named 'ffmpeg_win' in repository root directory. Copy three files 'ffmpeg.exe', 'ffprobe.exe', 'ffplay.exe' from downloaded archive to just created 'ffmpeg_win' directory.
    Or if you want to use pyinstaller here is the command (also use your own paths):
pyinstaller --noconfirm --onedir --windowed --icon "C:/Users/HP/Downloads/spotwrap/assets/images/download_icon.png" --name "SpotWrap" --add-binary "C:/Users/HP/Downloads/spotwrap/ffmpeg_win/ffmpeg.exe;." --add-binary "C:/Users/HP/Downloads/spotwrap/ffmpeg_win/ffplay.exe;." --add-binary "C:/Users/HP/Downloads/spotwrap/ffmpeg_win/ffprobe.exe;." --paths "C:/Users/HP/Downloads/spotwrap/spotwrap_venv/Lib/site-packages" --paths "C:/Users/HP/Downloads/spotwrap/spotwrap_venv/Scripts" --hidden-import "src" --hidden-import "src.utils" --hidden-import "src.controllers" --hidden-import "spotdl" --hidden-import "importlib._bootstrap" --hidden-import "pykakasi" --collect-submodules "spotdl" --collect-submodules "pykakasi" --collect-all "ytmusicapi" --collect-data "" --collect-all "pykakasi"  "C:/Users/HP/Downloads/spotwrap/main.py"