mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 20:40:43 +01:00
Support m4a and flac in dropbox.
This commit is contained in:
parent
7058d238fb
commit
18c7f3d5ed
@ -613,7 +613,8 @@ bool TagReaderWorker::ReadCloudFile(const QUrl& download_url,
|
||||
stream, // Takes ownership.
|
||||
TagLib::ID3v2::FrameFactory::instance(),
|
||||
TagLib::AudioProperties::Accurate));
|
||||
} else if (mime_type == "audio/mpeg" && title.endsWith(".m4a")) {
|
||||
} else if (mime_type == "audio/mp4" ||
|
||||
(mime_type == "audio/mpeg" && title.endsWith(".m4a"))) {
|
||||
tag.reset(new TagLib::MP4::File(
|
||||
stream,
|
||||
true,
|
||||
@ -624,7 +625,8 @@ bool TagReaderWorker::ReadCloudFile(const QUrl& download_url,
|
||||
stream,
|
||||
true,
|
||||
TagLib::AudioProperties::Accurate));
|
||||
} else if (mime_type == "application/x-flac") {
|
||||
} else if (mime_type == "application/x-flac" ||
|
||||
mime_type == "audio/flac") {
|
||||
tag.reset(new TagLib::FLAC::File(
|
||||
stream,
|
||||
TagLib::ID3v2::FrameFactory::instance(),
|
||||
|
@ -100,7 +100,9 @@ namespace {
|
||||
|
||||
bool IsSupportedMimeType(const QString& mime_type) {
|
||||
return mime_type == "audio/ogg" ||
|
||||
mime_type == "audio/mpeg";
|
||||
mime_type == "audio/mpeg" ||
|
||||
mime_type == "audio/mp4" ||
|
||||
mime_type == "audio/flac";
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Loading…
Reference in New Issue
Block a user