[libdmapsharing] Add support for com.apple.itunes.has-video to DAAPConnection Signed-off-by: W. Michael Petullo <mike
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Add support for com.apple.itunes.has-video to DAAPConnection Signed-off-by: W. Michael Petullo <mike
- Date: Fri, 27 May 2011 18:36:37 +0000 (UTC)
commit 4578c29ba817d1d40eaaad1b59fa02e971fad4fb
Author: W. Michael Petullo <mike flyn org>
Date: Fri May 27 09:19:05 2011 -0500
Add support for com.apple.itunes.has-video to DAAPConnection
Signed-off-by: W. Michael Petullo <mike flyn org>
libdmapsharing/daap-connection.c | 7 ++++++-
libdmapsharing/dmap-connection.c | 1 +
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libdmapsharing/daap-connection.c b/libdmapsharing/daap-connection.c
index ac85199..583f1ed 100644
--- a/libdmapsharing/daap-connection.c
+++ b/libdmapsharing/daap-connection.c
@@ -44,7 +44,7 @@ get_query_metadata (DMAPConnection * connection)
"daap.songtime,daap.songtrackcount,daap.songtracknumber,"
"daap.songyear,daap.songformat,"
"daap.songbitrate,daap.songdiscnumber,daap.songdataurl,"
- "daap.sortartist,daap.sortalbum");
+ "daap.sortartist,daap.sortalbum,com.apple.itunes.has-video");
}
static DMAPRecord *
@@ -66,6 +66,7 @@ handle_mlcl (DMAPConnection * connection, DMAPRecordFactory * factory,
gint track_number = 0;
gint disc_number = 0;
gint year = 0;
+ gboolean has_video = FALSE;
gint size = 0;
gint bitrate = 0;
@@ -106,6 +107,9 @@ handle_mlcl (DMAPConnection * connection, DMAPRecordFactory * factory,
case DMAP_CC_ASYR:
year = g_value_get_int (&(meta_item->content));
break;
+ case DMAP_CC_AEHV:
+ has_video = g_value_get_char (&(meta_item->content));
+ break;
case DMAP_CC_ASSZ:
size = g_value_get_int (&(meta_item->content));
break;
@@ -137,6 +141,7 @@ handle_mlcl (DMAPConnection * connection, DMAPRecordFactory * factory,
}
g_object_set (record,
"year", year,
+ "has-video", has_video,
"track", track_number,
"disc", disc_number,
"bitrate", bitrate,
diff --git a/libdmapsharing/dmap-connection.c b/libdmapsharing/dmap-connection.c
index 5db34bf..7f75e2e 100644
--- a/libdmapsharing/dmap-connection.c
+++ b/libdmapsharing/dmap-connection.c
@@ -1612,6 +1612,7 @@ dmap_connection_get_headers (DMAPConnection * connection, const gchar * uri)
return headers;
}
+// FIXME: unify this with share API? Build Container DB?
GSList *
dmap_connection_get_playlists (DMAPConnection * connection)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]