mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix audio identify on some cases
This commit is contained in:
parent
8d4da63855
commit
4be4fa2c4f
@ -222,7 +222,7 @@ pub async fn identify(path: String) -> Option<MediaInfo> {
|
||||
.members()
|
||||
.filter(|x| x["@type"] == "Audio")
|
||||
.map(|a| Audio {
|
||||
index: parse::<u32>(&a["StreamOrder"]).unwrap() - 1,
|
||||
index: parse::<u32>(&a["@typeorder"]).unwrap_or(1) - 1,
|
||||
title: a["Title"].as_str().map(|x| x.to_string()),
|
||||
language: a["Language"].as_str().map(|x| x.to_string()),
|
||||
// TODO: format is invalid. Channels count missing...
|
||||
|
Loading…
x
Reference in New Issue
Block a user