simon-weber / Autoplaylists-for-Google-Music

Adds autoplaylists, aka iTunes "smart playlists", to Google Music.
https://autoplaylists.simon.codes
MIT License
94 stars 18 forks source link

Playlist playtime limit #177

Open Dasonk opened 6 years ago

Dasonk commented 6 years ago

I saw in the wiki the suggestion about making a Pomodoro Playlist and I thought to myself that it might be easier and not too difficult to implement a limit on a playlists total length in terms of time instead of just raw song count.

I can give it a go on trying to make a basic implementation but wanted your thoughts on it before trying to code that up.

simon-weber commented 6 years ago

Cool idea! I suspect lovefield won't have built-in support for making a query like that (there's an aggregator for summing but it can't be used in a filter), so it'd just need to be something applied to the query results afterwards (probably here).