mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 03:09:57 +01:00
Support WMA in cloud services.
This commit is contained in:
parent
941aaca87c
commit
62e3e4cb91
@ -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;
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user