Is stats
omitting lines?
#2036
-
Hi! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I don't get it. If there are no songs in your library, then the value is known. It is zero. |
Beta Was this translation helpful? Give feedback.
-
My concrete problem at the moment is this issue. I'm trying to decide if it is my fault or a bug in mpd or its documentation. Unfortunately I'm not yet able to reproduce. |
Beta Was this translation helpful? Give feedback.
Oh, it is indeed possible for MPD to return empty stats. That can happen for example if the "proxy" database plugin fails; therefore you should really change your code to make it more robust against server-side errors where the response doesn't look like you expect it to be.
But in that user's setup, with the standard database plugin, that shouldn't happen. I can't explain what went wrong there, but in any case making code robust is a good idea.