[libdmapsharing] Add tags to "default" playlist that mirror real playlists Signed-off-by: W. Michael Petullo <mike fl



commit 8049c1ecc4bce90b6f4f9ceacf7059e33ac27164
Author: W. Michael Petullo <mike flyn org>
Date:   Wed May 18 12:17:29 2011 -0500

    Add tags to "default" playlist that mirror real playlists
    Signed-off-by: W. Michael Petullo <mike flyn org>

 TODO                        |    5 +++--
 libdmapsharing/dmap-share.c |    9 ++++++++-
 2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/TODO b/TODO
index 1408910..2b29cfa 100644
--- a/TODO
+++ b/TODO
@@ -1,7 +1,8 @@
 = Short term ===================================================================
 
-DACP: Remote only displays playlists that have songs. Do I need to create
-a "fake" playlist that contains all songs?
+DACP: Remote only displays playlists that have songs (result of
+/1/containers). Do I need to create a "fake" playlist that contains
+all songs?
 
 Noah: DNS-SD implementation
 	Finish browser side support.
diff --git a/libdmapsharing/dmap-share.c b/libdmapsharing/dmap-share.c
index 942e0a4..3be5e30 100644
--- a/libdmapsharing/dmap-share.c
+++ b/libdmapsharing/dmap-share.c
@@ -1994,13 +1994,20 @@ _dmap_share_databases (DMAPShare * share,
 				    + 1);
 		mb.mlcl = dmap_structure_add (aply, DMAP_CC_MLCL);
 
-		/* Base playlist: */
+		/* Base playlist (playlist 1 contains all songs): */
 		mlit = dmap_structure_add (mb.mlcl, DMAP_CC_MLIT);
 		dmap_structure_add (mlit, DMAP_CC_MIID, (gint32) 1);
 		dmap_structure_add (mlit, DMAP_CC_MPER, (gint64) 1);
 		dmap_structure_add (mlit, DMAP_CC_MINM, nameprop);
 		dmap_structure_add (mlit, DMAP_CC_MIMC,
 				    dmap_db_count (share->priv->db));
+		dmap_structure_add (mlit, DMAP_CC_FQUESCH, 0);
+		dmap_structure_add (mlit, DMAP_CC_MPCO, 0);
+		dmap_structure_add (mlit, DMAP_CC_AESP, 0);
+		dmap_structure_add (mlit, DMAP_CC_AEPP, 0);
+		dmap_structure_add (mlit, DMAP_CC_AEPS, 0);
+		dmap_structure_add (mlit, DMAP_CC_AESG, 0);
+
 		dmap_structure_add (mlit, DMAP_CC_ABPL, (gchar) 1);
 
 		dmap_container_db_foreach (share->priv->container_db,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]