Skip to content

Commit

Permalink
Skip deserializing url field in stream response
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Jul 24, 2023
1 parent a8abf32 commit 9dcbd6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/media/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ fn deserialize_streams<'de, D: Deserializer<'de>>(

let mut raw: HashMap<Locale, HashMap<String, Value>> = 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());
Expand Down

0 comments on commit 9dcbd6e

Please sign in to comment.