This is an automated archive made by the Lemmit Bot.
The original was posted on /r/piracyarchive by /u/thataintmefr on 2025-05-27 04:57:56+00:00.
- Download OnTheSpot by casualsnek from: https://github.com/casualsnek/onthespot/releases (choose the version for your OS)
- Download Python from: https://www.python.org/downloads/ and install it.
- Create a new file named ots_fixer.py (you can choose any other name but make sure that the file extension is .py)
- Paste the code below into the file:
from librespot.zeroconf import ZeroconfServer import time import logging import pathlib
zs = ZeroconfServer.Builder().create() logging.warning(“Transfer playback from desktop client to librespot-python via Spotify Connect in order to store session”)
while True: time.sleep(1) if zs.ZeroconfServersession: logging.warning(f"Grabbed {zs._ZeroconfServersession} for {zs._ZeroconfServer_session.username()}")
if pathlib.Path("credentials.json").exists():
logging.warning("Session stored in credentials.json. Now you can Ctrl+C")
break
- Open up the terminal and go to the directory where the python file is, and run “Python ots_fixer.py”. This should output a credentials.json file in the same directory. Rename this to
ots_login_a.json
, Copy and paste this JSON file into the following directory:C:\Users\(USERNAME)\.cache\casualOnTheSpot\sessions\
. - Go to
C:\Users\USERNAME\.config\casualonthespot\config.json
, if you don’t see any “accounts” field, then add accounts field like this:
“accounts”: [ [ YOUR EMAIL ([email protected]), “true”, 1, “a” ] ],
it should look something like this:
Now, open OnTheSpot, your Spotify account should be automatically logged in. You can easily download songs now.
You must log in or register to comment.