[banshee] Emusic: Add MIME type for eMusic's .emx files.
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Emusic: Add MIME type for eMusic's .emx files.
- Date: Fri, 8 Apr 2011 17:33:51 +0000 (UTC)
commit d6c49ad20ba31309d9bea5b170d65632b124f48c
Author: Will Thompson <will willthompson co uk>
Date: Mon Mar 21 00:07:55 2011 +0000
Emusic: Add MIME type for eMusic's .emx files.
Yeah, this really is the name of the MIME type they serve up.
Signed-off-by: Gabriel Burt <gabriel burt gmail com>
data/desktop-files/banshee.desktop.mime | 1 +
src/Extensions/Banshee.Emusic/Makefile.am | 5 +++++
src/Extensions/Banshee.Emusic/banshee-emx.xml | 9 +++++++++
3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/data/desktop-files/banshee.desktop.mime b/data/desktop-files/banshee.desktop.mime
index 653c099..bfe3825 100644
--- a/data/desktop-files/banshee.desktop.mime
+++ b/data/desktop-files/banshee.desktop.mime
@@ -20,6 +20,7 @@
application/musepack
application/ogg
application/rss+xml
+application/vnd.emusic-emusic_list
application/x-ape
application/x-democracy
application/x-extension-m4a
diff --git a/src/Extensions/Banshee.Emusic/Makefile.am b/src/Extensions/Banshee.Emusic/Makefile.am
index 7693cda..65c7cde 100644
--- a/src/Extensions/Banshee.Emusic/Makefile.am
+++ b/src/Extensions/Banshee.Emusic/Makefile.am
@@ -11,5 +11,10 @@ SOURCES = \
RESOURCES = Banshee.Emusic.addin.xml
+mimedir = $(datadir)/mime/packages
+mime_DATA = banshee-emx.xml
+
include $(top_srcdir)/build/build.mk
+EXTRA_DIST += banshee-emx.xml
+
diff --git a/src/Extensions/Banshee.Emusic/banshee-emx.xml b/src/Extensions/Banshee.Emusic/banshee-emx.xml
new file mode 100644
index 0000000..45de494
--- /dev/null
+++ b/src/Extensions/Banshee.Emusic/banshee-emx.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/vnd.emusic-emusic_list">
+ <generic-icon name="package-x-generic"/>
+ <comment>eMusic album download</comment>
+ <glob pattern="*.emx"/>
+ <sub-class-of type="application/xml"/>
+ </mime-type>
+</mime-info>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]