grilo-plugins: update to 0.3.2
authorW. Michael Petullo <[email protected]>
Sat, 9 Jul 2016 19:53:21 +0000 (15:53 -0400)
committerW. Michael Petullo <[email protected]>
Sat, 9 Jul 2016 19:53:21 +0000 (15:53 -0400)
Signed-off-by: W. Michael Petullo <[email protected]>
multimedia/grilo-plugins/Makefile
multimedia/grilo-plugins/patches/0001-dmap-Add-album-disc-number-mapping.patch [new file with mode: 0644]

index 8f6f7dcdab36ad0239c11a494179c54020b9cf0f..924809957430c23255e465e1aa9c16ae1d66c13f 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=grilo-plugins
-PKG_VERSION:=0.3.1
+PKG_VERSION:=0.3.2
 PKG_RELEASE:=1
 
 PKG_MAINTAINER:=W. Michael Petullo <[email protected]>
@@ -18,7 +18,7 @@ PKG_LICENSE_FILES:=COPYING
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNOME/grilo-plugins/0.3/
-PKG_MD5SUM:=8e4ef3a6a8f66629d4f2c9fe7a05d8c9
+PKG_MD5SUM:=eb25fbe4be83e77f2308d086177a8f4c
 
 PKG_BUILD_DEPENDS:=glib2 grilo
 
diff --git a/multimedia/grilo-plugins/patches/0001-dmap-Add-album-disc-number-mapping.patch b/multimedia/grilo-plugins/patches/0001-dmap-Add-album-disc-number-mapping.patch
new file mode 100644 (file)
index 0000000..89c3656
--- /dev/null
@@ -0,0 +1,58 @@
+From 3cd7fb6af73ca7fdef2557ad31b5c4180534d775 Mon Sep 17 00:00:00 2001
+From: "W. Michael Petullo" <[email protected]>
+Date: Sat, 9 Jul 2016 09:50:00 -0400
+Subject: [PATCH] dmap: Add album disc number mapping
+
+Signed-off-by: W. Michael Petullo <[email protected]>
+---
+ src/dmap/grl-daap-db.c | 7 +++++++
+ src/dmap/grl-daap.c    | 1 +
+ 2 files changed, 8 insertions(+)
+
+diff --git a/src/dmap/grl-daap-db.c b/src/dmap/grl-daap-db.c
+index 4850073..5bcd804 100644
+--- a/src/dmap/grl-daap-db.c
++++ b/src/dmap/grl-daap-db.c
+@@ -161,6 +161,7 @@ grl_daap_db_add (DMAPDb *_db, DMAPRecord *_record)
+   gint   duration = 0;
+   gint32  bitrate = 0,
++             disc = 0,
+             track = 0;
+   gchar  *id_s    = NULL,
+          *title   = NULL,
+@@ -186,6 +187,8 @@ grl_daap_db_add (DMAPDb *_db, DMAPRecord *_record)
+                &title,
+                "track",
+                &track,
++               "disc",
++               &disc,
+                "location",
+                &url,
+                "has-video",
+@@ -217,6 +220,10 @@ grl_daap_db_add (DMAPDb *_db, DMAPRecord *_record)
+     grl_media_set_bitrate      (media, bitrate);
+     grl_media_set_track_number (media, track);
++    if (disc != 0) {
++      grl_media_set_album_disc_number (media, disc);
++    }
++
+     if (album) {
+       grl_media_set_album (media, album);
+     }
+diff --git a/src/dmap/grl-daap.c b/src/dmap/grl-daap.c
+index 59aa981..796234d 100644
+--- a/src/dmap/grl-daap.c
++++ b/src/dmap/grl-daap.c
+@@ -365,6 +365,7 @@ grl_daap_source_supported_keys (GrlSource *source)
+   if (!keys) {
+     keys = grl_metadata_key_list_new (GRL_METADATA_KEY_ALBUM,
++                                      GRL_METADATA_KEY_ALBUM_DISC_NUMBER,
+                                       GRL_METADATA_KEY_ARTIST,
+                                       GRL_METADATA_KEY_BITRATE,
+                                       GRL_METADATA_KEY_DURATION,
+-- 
+2.7.4
+