mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
fix timestamp heuristic (year 2200+)
This commit is contained in:
parent
c2c31247b5
commit
ce4be71719
1 changed files with 1 additions and 2 deletions
|
@ -130,8 +130,7 @@ impl TryFrom<&<Playlist as Metadata>::Message> for SelectedListContent {
|
|||
type Error = librespot_core::Error;
|
||||
fn try_from(playlist: &<Playlist as Metadata>::Message) -> Result<Self, Self::Error> {
|
||||
let timestamp = playlist.get_timestamp();
|
||||
|
||||
let timestamp = if timestamp > 1672809484000 {
|
||||
let timestamp = if timestamp > 9295169800000 {
|
||||
// timestamp is way out of range for milliseconds. Some seem to be in microseconds?
|
||||
// Observed on playlists where:
|
||||
// format: "artist-mix-reader"
|
||||
|
|
Loading…
Reference in a new issue