The playlist now has a song with a file but no other data. How can I detect if this is a valid song with no metadata, or an invalid song?
I'm currently using the heuristic of checking to see if song.time.nil?. It would be nice to have something like MPD::Song#valid? to see if the song instance is grounded in reality and able to be used.
The playlist now has a song with a file but no other data. How can I detect if this is a valid song with no metadata, or an invalid song?
I'm currently using the heuristic of checking to see if
song.time.nil?
. It would be nice to have something likeMPD::Song#valid?
to see if the song instance is grounded in reality and able to be used.