Jei / tormentedplayer

An Android client for Tormented Radio powered by Flutter
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Avoid excessive calls to the "track info" API #7

Closed Jei closed 4 years ago

Jei commented 4 years ago

Every few seconds (currently 10) the app sends a request to Tormented Radio to read the current track. After that, it makes a new request to a Firebase cloud function that retrieves further details about the song (album name, album art). We should avoid calling the cloud function every time if the app already has data on the current song.