Join GitHub today
tizgmusic: play a random item from the user library or Google Music catalogue when search results are empty #246
The idea here is to make sure Tizonia's Google Play music search always have something to play, either from the user's library or from the Google Play Music catalogue.
So when the search query (album, artist, station, playlist, etc) renders no results, a subsequent search will be issued with and empty string. This will guarantee that some results are returned and from those, a random item will be picked up to build the playlist.