Commit 7b9bd6fd authored by Stefan Brüns's avatar Stefan Brüns

Add support for AIFC and Audible AAX cover art thumbnails

Audible AAX is a ISOBMFF file like MPEG4 audio.
AIFC is a newer variant of the AIFF codec, but uses the same ID3v2
metadata format.
parent efd12724
......@@ -170,7 +170,8 @@ bool AudioCreator::create(const QString &path, int, int, QImage &img)
TagLib::FLAC::File file(QFile::encodeName(path).data());
return parseFlacTag(file, img) || parseID3v2Tag(file, img);
}
if (type.inherits("audio/mp4") || type.inherits("audio/x-m4a")) {
if (type.inherits("audio/mp4") || type.inherits("audio/x-m4a") ||
type.inherits("audio/vnd.audible.aax")) {
TagLib::MP4::File file(QFile::encodeName(path).data());
return parseMP4Tag(file, img);
}
......@@ -197,7 +198,7 @@ bool AudioCreator::create(const QString &path, int, int, QImage &img)
}
return parseFlacTag(*xiphComment, img);
}
if (type.inherits("audio/x-aiff")) {
if (type.inherits("audio/x-aiff") || type.inherits("audio/x-aifc")) {
TagLib::RIFF::AIFF::FileExt file(QFile::encodeName(path).data());
return parseID3v2Tag(file, img);
}
......
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