From ce4be7171909d9aec93f58b1f7fe684e3b085827 Mon Sep 17 00:00:00 2001 From: George Hahn Date: Tue, 3 Jan 2023 22:38:54 -0700 Subject: [PATCH] fix timestamp heuristic (year 2200+) --- metadata/src/playlist/list.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metadata/src/playlist/list.rs b/metadata/src/playlist/list.rs index 36ff3a55..dcbd9ea1 100644 --- a/metadata/src/playlist/list.rs +++ b/metadata/src/playlist/list.rs @@ -130,8 +130,7 @@ impl TryFrom<&::Message> for SelectedListContent { type Error = librespot_core::Error; fn try_from(playlist: &::Message) -> Result { 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"