311822ecdc0dc8166e2ca811e14ac62a0f2ad890
This change introduces an sqlite database that contains the track_id, db insertion time, and ttl in the cache. The ttl starts with one week, and increases exponentially by a factor of 2 each time the same track_id is added to the database. This significantly reduces the execution of the time script when there are a lot of match failures accumulating, which do not need to check every time.
A command line tool for importing your Spotify playlists into Tidal
Installation
Clone this git repository and then run:
python3 -m pip install -r requirements.txt
Setup
- Rename the file example_config.yml to config.yml
- Go here and register a new app on developer.spotify.com.
- Copy and paste your client ID and client secret to the Spotify part of the config file
- Copy and paste the value in 'redirect_uri' of the config file to Redirect URIs at developer.spotify.com and press ADD
- Enter your Spotify username to the config file
Usage
To synchronize all of your Spotify playlists with your Tidal account run the following
python3 sync.py
This will take a long time because the Tidal API is really slow.
You can also just synchronize a specific playlist by doing the following:
python3 sync.py --uri 1ABCDEqsABCD6EaABCDa0a
See example_config.yml for more configuration options, and sync.py --help for more options.
Description
Languages
Python
99.5%
Shell
0.5%