Ignore manifest audio sentinel
Browse files at this commit7192e035ea5f1394ca40e22b50a166705953058fParent: 52fc2fc- test
- ignore manifest audio sentinel
1 changed file +5 -1
crates/ec-probe/tests/library.rsmodified+5 -1
| @@ -23,10 +23,14 @@ fn manifest() -> Vec<(PathBuf, String, String, f64)> { | |||
| 23 | .filter_map(|line| { | 23 | .filter_map(|line| { |
| 24 | let f: Vec<&str> = line.split('\t').collect(); | 24 | let f: Vec<&str> = line.split('\t').collect(); |
| 25 | let path = PathBuf::from(f.first()?); | 25 | let path = PathBuf::from(f.first()?); |
| 26 | + let acodecs = f | ||
| 27 | + .get(7) | ||
| 28 | + .filter(|s| **s != "-") | ||
| 29 | + .map_or_else(String::new, |s| (*s).to_string()); | ||
| 26 | Some(( | 30 | Some(( |
| 27 | path, | 31 | path, |
| 28 | (*f.get(1)?).to_string(), | 32 | (*f.get(1)?).to_string(), |
| 29 | - (*f.get(7)?).to_string(), | 33 | + acodecs, |
| 30 | f.get(8)?.parse().unwrap_or(0.0), | 34 | f.get(8)?.parse().unwrap_or(0.0), |
| 31 | )) | 35 | )) |
| 32 | }) | 36 | }) |