Support WMA in cloud services.

This commit is contained in:
John Maguire 2012-12-07 12:07:43 +01:00
parent 941aaca87c
commit 62e3e4cb91
2 changed files with 7 additions and 1 deletions

View File

@ -632,6 +632,11 @@ bool TagReaderWorker::ReadCloudFile(const QUrl& download_url,
TagLib::ID3v2::FrameFactory::instance(),
true,
TagLib::AudioProperties::Accurate));
} else if (mime_type == "audio/x-ms-wma") {
tag.reset(new TagLib::ASF::File(
stream,
true,
TagLib::AudioProperties::Accurate));
} else {
qLog(Debug) << "Unknown mime type for tagging:" << mime_type;
return false;

View File

@ -177,5 +177,6 @@ bool CloudFileService::IsSupportedMimeType(const QString& mime_type) const {
mime_type == "audio/mp4" ||
mime_type == "audio/flac" ||
mime_type == "application/ogg" ||
mime_type == "application/x-flac";
mime_type == "application/x-flac" ||
mime_type == "audio/x-ms-wma";
}