Commit cc194ab1 authored by Marinus Schraal's avatar Marinus Schraal

grltrackerplaylist: Use childcount for playlist count

Gives an immediate playlist size. Needs grilo-plugins!56.
parent 1f9f49fd
......@@ -18,6 +18,7 @@ class GrlTrackerPlaylists(GObject.GObject):
Grl.METADATA_KEY_ALBUM_ARTIST,
Grl.METADATA_KEY_ALBUM_DISC_NUMBER,
Grl.METADATA_KEY_ARTIST,
Grl.METADATA_KEY_CHILDCOUNT,
Grl.METADATA_KEY_CREATION_DATE,
Grl.METADATA_KEY_COMPOSER,
Grl.METADATA_KEY_DURATION,
......@@ -246,6 +247,7 @@ class Playlist(GObject.GObject):
if media:
self.props.pl_id = media.get_id()
self.props.title = utils.get_media_title(media)
self.props.count = media.get_childcount()
self.props.creation_date = media.get_creation_date()
self.props.query = query
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment