Add duration support for streaming in mpd (#66110)
Add duration support for streaming in mpd (#66110)

* Add duration support for streaming in mpd

* Change to use 1 line instead of if

* Improve code to be more readable
mezz64/home-assistant,nkgilley/home-assistant,nkgilley/home-assistant,toddeye/home-assistant,toddeye/home-assistant,w1ll1am23/home-assistant,w1ll1am23/home-assistant,mezz64/home-assistant