Commit 8feaa263 authored by Carlos Garnacho's avatar Carlos Garnacho

tracker-extract: Only add nmm:* information if there is no TOC

If there is a TOC, the nmm:* information belongs in the child nmm:MusicPiece
elements, not on the container file.
parent d93cbdaa
......@@ -875,13 +875,6 @@ extract_metadata (MetadataExtractor *extractor,
if (extractor->mime == EXTRACT_MIME_AUDIO) {
album_disc = extractor_maybe_get_album_disc (extractor, extractor->tagcache);
extractor_apply_audio_metadata (extractor,
extractor->tagcache,
resource,
performer,
composer,
album_disc);
/* If the audio file contains multiple tracks, we create the tracks
* as abstract information element types and relate them to the
* concrete nfo:FileDataObject using nie:isStoredAs.
......@@ -897,6 +890,13 @@ extract_metadata (MetadataExtractor *extractor,
}
tracker_resource_set_string (resource, "nie:url", file_url);
} else {
extractor_apply_audio_metadata (extractor,
extractor->tagcache,
resource,
performer,
composer,
album_disc);
}
if (album_disc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment