Singles like this one: https://open.spotify.com/album/4BdPaP1jstPSPn86T00lNF?si=RHBmQn9-SQiFi_zx4ieIag (more than 19 minutes of duration) could be on the Release radar (no singles) playlist. They are long enough to be listened like an album.
So, instead of checking for type == album, just accumulate the duration of the tracks until you reach a minimum duration (configurable).
- Idea: this could be a separated feature; let the current one as it is and make a new one - "Release Radar (long enough albums)"
Singles like this one: https://open.spotify.com/album/4BdPaP1jstPSPn86T00lNF?si=RHBmQn9-SQiFi_zx4ieIag (more than 19 minutes of duration) could be on the Release radar (no singles) playlist. They are long enough to be listened like an album.
So, instead of checking for
type == album, just accumulate the duration of the tracks until you reach a minimum duration (configurable).