From 9dcbd6e240df736c39f51bca65d1263305be8e97 Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 24 Jul 2023 14:06:58 +0200 Subject: [PATCH] Skip deserializing url field in stream response --- src/media/stream.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/media/stream.rs b/src/media/stream.rs index 88dff04..d41ed36 100644 --- a/src/media/stream.rs +++ b/src/media/stream.rs @@ -16,6 +16,11 @@ fn deserialize_streams<'de, D: Deserializer<'de>>( let mut raw: HashMap> = HashMap::new(); for (key, value) in as_map { + // always empty + if key == "urls" { + continue + } + for (mut locale, data) in value { if locale == Locale::Custom(":".to_string()) { locale = Locale::Custom("".to_string());