and3rson / clay

Awesome standalone command line player for Google Play Music.
GNU General Public License v3.0
157 stars 11 forks source link

Avoid throwing an exception on tracks without an explicitRating key #59

Open palmer-dabbelt opened 4 years ago

palmer-dabbelt commented 4 years ago

Without this patch I get some responses from the server that lack an explicitRating key, causing an exception to be thrown that results in these tracks being dropped from the user interface. This simply checks to see if the explicitRating key exists before attempting to read it.

Signed-off-by: Palmer Dabbelt palmer@dabbelt.com