Skip to content

Commit

Permalink
Update MimeCategorizer.cpp
Browse files Browse the repository at this point in the history
Added extensions that were listed in Other on v1.9 and a few others observed as missing while reviewing the categories during this edit.
  • Loading branch information
mirror176 authored Jul 23, 2024
1 parent 2f67f14 commit d8d0804
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/MimeCategorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ void MimeCategorizer::addDefaultCategories()
junk->addSuffix( "~" );
junk->addSuffix( "bak" );
junk->addPattern( "core", Qt::CaseSensitive );
junk->addSuffix( "old" );
junk->addSuffix( "orig" );


MimeCategory * archives = new MimeCategory( tr( "Compressed Archives" ), Qt::green );
Expand Down Expand Up @@ -370,6 +372,7 @@ void MimeCategorizer::addDefaultCategories()
<< "tz2"
<< "tzst"
<< "zip"
<< "zpaq"
);

archives->addPattern( "pack-*.pack" ); // Git archive
Expand Down Expand Up @@ -440,6 +443,7 @@ void MimeCategorizer::addDefaultCategories()
<< "asf"
<< "avi"
<< "divx"
<< "dv"
<< "flc"
<< "fli"
<< "flv"
Expand All @@ -452,6 +456,7 @@ void MimeCategorizer::addDefaultCategories()
<< "mp4"
<< "mpeg"
<< "mpg"
<< "mts"
<< "ogm"
<< "ogv"
<< "rm"
Expand All @@ -469,7 +474,11 @@ void MimeCategorizer::addDefaultCategories()

music->addSuffixes( QStringList()
<< "aac"
<< "aif"
<< "ape"
<< "caf"
<< "dff"
<< "dsf"
<< "f4a"
<< "f4b"
<< "flac"
Expand All @@ -483,8 +492,11 @@ void MimeCategorizer::addDefaultCategories()
<< "opus"
<< "ra"
<< "rax"
<< "w64"
<< "wav"
<< "wma"
<< "wv"
<< "wvc"
);


Expand All @@ -501,6 +513,7 @@ void MimeCategorizer::addDefaultCategories()
<< "epub"
<< "htm"
<< "html"
<< "ly"
<< "md"
<< "odb"
<< "odc"
Expand Down

0 comments on commit d8d0804

Please sign in to comment.