Skip to main content

normalise_id

Function normalise_id 

Source
fn normalise_id(id: &str) -> String
Expand description

Jellyfin writes the same GUID both dashed and undashed depending on the endpoint, and ids arriving over IPC may carry stray whitespace. Comparing a canonical form means a stored id keeps matching whichever spelling a query happens to return.