Browse Source

grilo-plugins: update to 0.3.2

Signed-off-by: W. Michael Petullo <mike@flyn.org>
lilik-openwrt-22.03
W. Michael Petullo 8 years ago
parent
commit
0c59a1371d
2 changed files with 60 additions and 2 deletions
  1. +2
    -2
      multimedia/grilo-plugins/Makefile
  2. +58
    -0
      multimedia/grilo-plugins/patches/0001-dmap-Add-album-disc-number-mapping.patch

+ 2
- 2
multimedia/grilo-plugins/Makefile View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=grilo-plugins PKG_NAME:=grilo-plugins
PKG_VERSION:=0.3.1
PKG_VERSION:=0.3.2
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org> PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
@ -18,7 +18,7 @@ PKG_LICENSE_FILES:=COPYING
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNOME/grilo-plugins/0.3/ PKG_SOURCE_URL:=@GNOME/grilo-plugins/0.3/
PKG_MD5SUM:=8e4ef3a6a8f66629d4f2c9fe7a05d8c9
PKG_MD5SUM:=eb25fbe4be83e77f2308d086177a8f4c
PKG_BUILD_DEPENDS:=glib2 grilo PKG_BUILD_DEPENDS:=glib2 grilo


+ 58
- 0
multimedia/grilo-plugins/patches/0001-dmap-Add-album-disc-number-mapping.patch View File

@ -0,0 +1,58 @@
From 3cd7fb6af73ca7fdef2557ad31b5c4180534d775 Mon Sep 17 00:00:00 2001
From: "W. Michael Petullo" <mike@flyn.org>
Date: Sat, 9 Jul 2016 09:50:00 -0400
Subject: [PATCH] dmap: Add album disc number mapping
Signed-off-by: W. Michael Petullo <mike@flyn.org>
---
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

Loading…
Cancel
Save