* Add duration support for streaming in mpd * Change to use 1 line instead of if * Improve code to be more readable