spotify2tidal / spotify_to_tidal

A command line tool for importing your Spotify playlists into Tidal
GNU Affero General Public License v3.0
241 stars 44 forks source link

Add cache of match failures #41

Closed timrae closed 1 month ago

timrae commented 1 month ago

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.

joshrmcdaniel commented 1 month ago

LGTM besides the one comment