A tool for turning Spotify songs into iPhone-ready alarms & ringtones.
- Clone the repo
- Store your Spotify Client ID and Client Secret as environment variables called
QUARTZ_CLIENT_ID
andQUARTZ_CLIENT_SECRET
, respectively. cd
into the cloned repo and runpip install -r requirements.txt
- Run Quartz
- Converting a song:
python src/main.py song [song Spotify URL]
- Converting a playlist (must be public):
python src/main.py playlist [playlist Spotify URL]
- Configure the output directory of the file by appending
--out-dir [output directory]
to the end of either of the above two commands
- Converting a song:
- Upload the downloaded file(s) to iTunes
- Connect your iPhone to your PC and transfer the file(s)
Note: For the audio file to be a valid ringtone, it must be at most 30 seconds long. This can easily be configured using the built-in file trimmer.
Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
This is a known issue with pytube that is caused by YouTube Shorts. Although the log doesn't impact Quartz's functionality, you can follow this fix to suppress the message.