librespot-org / librespot

Open Source Spotify client library
MIT License
4.7k stars 573 forks source link

Handle microsecond timestamps #1089

Closed GeorgeHahn closed 1 year ago

GeorgeHahn commented 1 year ago

I've observed that artist mix playlists are being sent with timestamps measured in microseconds. This causes Date::from_timestamp_ms to return an error.

Handled with a simple heuristic that will stop working in about two hundred years.

roderickvd commented 1 year ago

Pfff... I am no longer surprised by tricks like these pulled by Spotify. Thanks and to those who read this after 2200: we were here 😜