pinakes-core: fix API mismatch in metadata extraction
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I2b445bc77bae29dcab5d51ab44631ffe6a6a6964
This commit is contained in:
parent
fe52fedd88
commit
3fd3dd48f0
2 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ impl MetadataExtractor for AudioExtractor {
|
|||
meta.artist = tag.artist().map(|s| s.to_string());
|
||||
meta.album = tag.album().map(|s| s.to_string());
|
||||
meta.genre = tag.genre().map(|s| s.to_string());
|
||||
meta.year = tag.year().map(|y| y as i32);
|
||||
meta.year = tag.date().map(|ts| ts.year as i32);
|
||||
}
|
||||
|
||||
if let Some(tag) = tagged_file
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ fn extract_mp4(path: &Path) -> Result<ExtractedMetadata> {
|
|||
meta.genre = tag
|
||||
.genre()
|
||||
.map(|s: std::borrow::Cow<'_, str>| s.to_string());
|
||||
meta.year = tag.year().map(|y| y as i32);
|
||||
meta.year = tag.date().map(|ts| ts.year as i32);
|
||||
}
|
||||
|
||||
let properties = tagged_file.properties();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue