Skip to content

Commit

Permalink
Fixes for APE filetype.
Browse files Browse the repository at this point in the history
  • Loading branch information
smithjd15 committed Apr 2, 2019
1 parent f6ba37d commit bd89a1d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ext/libclementine-remote/remotecontrolmessages.proto
Expand Up @@ -109,6 +109,7 @@ message SongMetadata {
WAVPACK = 14;
SPC = 15;
VGM = 16;
APE = 17;
STREAM = 99;
}

Expand Down
1 change: 1 addition & 0 deletions src/core/mpris2.cpp
Expand Up @@ -238,6 +238,7 @@ QStringList Mpris2::SupportedMimeTypes() const {
<< "audio/ogg"
<< "audio/vnd.rn-realaudio"
<< "audio/vorbis"
<< "audio/x-ape"
<< "audio/x-flac"
<< "audio/x-mp3"
<< "audio/x-mpeg"
Expand Down
3 changes: 3 additions & 0 deletions src/core/song.cpp
Expand Up @@ -456,6 +456,8 @@ QString Song::TextForFiletype(FileType type) {
return QObject::tr("SNES SPC700");
case Song::Type_VGM:
return QObject::tr("VGM");
case Song::Type_APE:
return QObject::tr("Monkey's Audio");

case Song::Type_Stream:
return QObject::tr("Stream");
Expand All @@ -469,6 +471,7 @@ QString Song::TextForFiletype(FileType type) {
bool Song::IsFileLossless() const {
switch (filetype()) {
case Song::Type_Aiff:
case Song::Type_APE:
case Song::Type_Flac:
case Song::Type_OggFlac:
case Song::Type_Wav:
Expand Down
1 change: 1 addition & 0 deletions src/library/libraryquery.cpp
Expand Up @@ -46,6 +46,7 @@ const QMap<QString, Song::FileType> kFiletypeId = QMap<QString, Song::FileType>(
{"cdda", Song::Type_Cdda},
{"spc700", Song::Type_Spc},
{"vgm", Song::Type_VGM},
{"ape", Song::Type_APE},
{"stream", Song::Type_Stream},
{"unknown", Song::Type_Unknown}});

Expand Down

0 comments on commit bd89a1d

Please sign in to comment.