summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Reher <tde@4reher.org>2022-02-19 09:32:22 -0800
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-02-20 12:42:58 +0900
commit816e5fec4f47a677d5375ab753cb912090d34c41 (patch)
treea7a5790e70c71831b3d2f3e7ede3235deacd1c07
parentcc413f5104c01698fd342b6961da6a79ab3eaea3 (diff)
downloadtdemultimedia-816e5fec4f47a677d5375ab753cb912090d34c41.tar.gz
tdemultimedia-816e5fec4f47a677d5375ab753cb912090d34c41.zip
Fix Konqueror plugin tdefile_mp3 to activate on mimetype audio/mpeg.
This resolves issue #33. Signed-off-by: Vincent Reher <tde@4reher.org> (cherry picked from commit 712bd43fb823d75702d1777ef27ea2257866e141)
-rw-r--r--tdefile-plugins/mp3/tdefile_mp3.cpp4
-rw-r--r--tdefile-plugins/mp3/tdefile_mp3.desktop2
2 files changed, 3 insertions, 3 deletions
diff --git a/tdefile-plugins/mp3/tdefile_mp3.cpp b/tdefile-plugins/mp3/tdefile_mp3.cpp
index 2d0e0022..39cb186d 100644
--- a/tdefile-plugins/mp3/tdefile_mp3.cpp
+++ b/tdefile-plugins/mp3/tdefile_mp3.cpp
@@ -47,9 +47,9 @@ K_EXPORT_COMPONENT_FACTORY(tdefile_mp3, Mp3Factory( "tdefile_mp3" ))
KMp3Plugin::KMp3Plugin(TQObject *parent, const char *name, const TQStringList &args)
: KFilePlugin(parent, name, args)
{
- kdDebug(7034) << "mp3 plugin\n";
+ kdDebug(7034) << "mp3 plugin for mimetype " << name << endl;
- KFileMimeTypeInfo *info = addMimeTypeInfo("audio/x-mp3");
+ KFileMimeTypeInfo *info = addMimeTypeInfo(name);
// id3 group
diff --git a/tdefile-plugins/mp3/tdefile_mp3.desktop b/tdefile-plugins/mp3/tdefile_mp3.desktop
index 617ecc02..9eaeb81d 100644
--- a/tdefile-plugins/mp3/tdefile_mp3.desktop
+++ b/tdefile-plugins/mp3/tdefile_mp3.desktop
@@ -3,6 +3,6 @@ Type=Service
Name=MP3 Info
X-TDE-ServiceTypes=KFilePlugin
X-TDE-Library=tdefile_mp3
-MimeType=audio/x-mp3
+MimeType=audio/mpeg;audio/x-mp3
PreferredGroups=id3,Technical
PreferredItems=Title,Artist,Album,Tracknumber,Genre,Bitrate,Length,Date,Comment,Sample Rate,Channels,Version,Layer,Copyright,Original,CRC