qt based music downloader written in python.
If you have an idea for an improvement or feature, create a issue or join the discord server to discuss!
Make sure ffmpeg, python3 and Git are installed and available on your $PATH
. If you are on windows, you also need to install the Microsoft C++ build tools and restart your computer before starting the build process.
git clone https://github.com/casualsnek/onthespot
cd onthespot
pip install -r requirements.txt
cd src
python3 -m onthespot
The requirements are the same as "Launching without installing" above.
git clone https://github.com/casualsnek/onthespot
cd onthespot
python -m build
pip install ./dist/*.whl
onthespot_gui
onthespot
is available for arch linux and arch linux based distributions in arch user repository (aur) as onthespot-git.
You can install onthespot
using your favourite aur helper.
For eg: using yay
yay -Sy onthespot-git
Download Latest 'onthespot_linux' from the release section and execute with
chmod +x onthespot_linux
./onethespot_linux
Download Latest 'onthespot_win_ffm.exe' or 'onthespot_win.exe' from the Release section and execute by double-clicking the downloaded file.
The binaries with filename ending with '_ffm' have ffmpeg bundled and should not require manual installation.
If you are using binaries that does not bundle ffmpeg and downloads gets stuck at 99% with Converting
on progress text, you are missing ffmpeg ! Please install it by following the instructions below
C:\
Drive and make a folder name ffmpeg
therebin
folder from zip to C:\ffmpeg
setx /m PATH "C:\ffmpeg\bin;%PATH%"
Now the application should work as expected.
Building or packaging on any OS requires Git, Python3 and Pip installed. Make sure you have them installed !
Open terminal emulator and run the following command to clone the repository and build.
git clone https://github.com/casualsnek/onthespot
cd onthespot
If you want builds with ffmpeg embedded download ffmpeg binaries for your os from Here. Create a new directory named 'ffbin_nix' in repository root directory. Copy three files 'ffmpeg', 'ffprobe', 'ffplay' from downloaded archive to just created 'ffbin_nix' directory then run;
bash ./build_linux.sh
After the command completes, you should have a 'dist' directory in repository root containing built 'onthespot_linux' binary.
Open cmd and run the following command to clone the repository and build.
git clone https://github.com/casualsnek/onthespot
cd onthespot
If you do not have git installed you can also download the Project source zip from github, extract it and open cmd on repository root. If you want builds with ffmpeg embedded download ffmpeg binaries for your os from Here. Create a new directory named 'ffbin_win' in repository root directory. Copy three files 'ffmpeg.exe', 'ffprobe.exe', 'ffplay.exe' from downloaded archive to just created 'ffbin_win' directory then run;
build_winC1.bat
build_winC2.bat
After the command completes, you should have a 'dist' directory in repository root containing built 'onthespot_win.exe' binary.
NOTE : This only builds an app for the specific processor architecture you are on. It does not build a universal binary
Open terminal emulator and run the following command to clone the repository and build.
git clone https://github.com/casualsnek/onthespot
cd onthespot
If you want builds with ffmpeg embedded download ffmpeg binaries for your os from Here. Create a new directory named 'ffbin_mac' in repository root directory. Copy three files 'ffmpeg', 'ffprobe', 'ffplay' from the downloaded archive to the newly created 'ffbin_mac' directory then run:
./build_mac.sh
After the command completes, you should have a 'dist' directory in repository root containing the 'onthespot_mac.app' binary.
You can also build onthespot as wheel and install it as python module via pip in your system. It provides better integration with system, like using your system's Qt style and themes as well as you can use provided icon and .desktop file for better integration under linux systems.
Make sure you have set up tools installed !
Open terminal emulator and run the following command to clone the repository and build.
git clone https://github.com/casualsnek/onthespot
cd onthespot
python -m build
This will create a dist directory containing .whl file that can now be installed with pip, the application can be launched with the command onthespot_gui
or python3 -m onthespot
after installing !
NOTE : If you are packaging onthespot for distribution, copy src/onthespot/resources/icon.svg
to either /usr/share/icons/hicolor/scalable/apps/casual_onthespot.svg
or $HOME/.local/share/icons/hicolor/scalable/apps/casual_onthespot.svg
, and src/onthespot/resources/org.eu.casualsnek.onthespot.desktop
to either /usr/share/applications/org.eu.casualsnek.onthespot.desktop
or $HOME/.local/share/applications/org.eu.casualsnek.onthespot.desktop
. This allows application to be better integrated to desktop environments !
If you have ideas for improvement/features create an issue or join discord server for discussion !
When launching the application for the first time, you will get a warning that no spotify accounts are added. Dismiss the warning, and add your account(s) at the bottom of the configuration tab. Having multiple accounts will let you download multiple songs at a time.
In the 'Search' tab, you can enter your query click search
to search for songs/artists/albums/playlists.
You can then download media in the resulting list by clicking on the download
button.
Optionally, you can bulk download by clicking on any of the buttons on the below the table.
Note that Media Type other than 'Tracks' can take a little longer to parse and download. The application may appear to be frozen in this state !
Enter the url in the search field then click download. You can also enter path of text file containing URL, and it will queue all url(s) in it ! Note that Media Type other than 'Tracks' can take a little longer to parse and download. Application may appear to be frozen in this state !
The download status and progress can be viewed by navigating to the 'Progress' tab.
Default track names are AlbumFormatter/TrackName
{}
. A few variables are available to use in the naming scheme:
Song: {name} of album: {album} Released in {rel_year}
.The value of variables with their description ending in * maybe empty in some cases. This can also be a path.
{}
. A few variables are available to use in the naming scheme:
{artist}/{rel_year}/{album}
. The value of variables with their description ending in * maybe empty in some cases. This can be a path too.
Download chunk size: Size of chunks (bytes) used for downloading.
Disable bulk download notice: Enabling this will disable popup dialogs about status when using bulk downloads.
Recoverable downloads retry delay: Time to wait before attempting another download after failed attempt.
Skip bytes at the end (download end skip bytes): Sometimes the last few bytes of a track can't be downloaded, leading to a 'PD Error' which causes the downloads to fail constantly. This option sets the number of bytes to skip downloading when this happens. The value might change but the current working value is '167' bytes. If you get 'decode errors' or incomplete song downloads, try setting it to 0.
Force Artist/Album dir for track/playlist items: If this is disabled the tracks downloaded will be placed in the root of download directory instead of artist/album directories. Enabling this might cause slower download parsing but makes organising music easier.
Media Format: Format of media you want your final music download to be in. Do not include '.' in it. This setting will be ignored while using the raw media download option.
Decode error: If you are receiving this error, your account might have gotten restricted. Wait some time or try a different account. The application may crash frequently as there is no proper exception handling yet. You can help by opening a new issue with the error message displayed in your console window after the application misbehaves.
You can write code to include additional feature or bug fixes or make a issue regarding bugs and features or just spread the work about the application :) If you want to support financially, you can visit Here and support through open collective or BTC If you like the project, show your support by giving it a star :) !