aboutsummaryrefslogtreecommitdiff
path: root/src/playlists-menu-item.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlists-menu-item.vala')
-rw-r--r--src/playlists-menu-item.vala12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/playlists-menu-item.vala b/src/playlists-menu-item.vala
index 782b5a2..c784734 100644
--- a/src/playlists-menu-item.vala
+++ b/src/playlists-menu-item.vala
@@ -46,8 +46,9 @@ public class PlaylistsMenuitem : PlayerItem
public new void update (PlaylistDetails[] playlists)
{
foreach ( PlaylistDetails detail in playlists ){
-
- if (this.already_observed(detail)) continue;
+ // We don't want to list playlists which are for videos)'
+ if (this.already_observed(detail) || this.is_video_related(detail))
+ continue;
Dbusmenu.Menuitem menuitem = new Menuitem();
menuitem.property_set (MENUITEM_PROP_LABEL, detail.name);
@@ -119,6 +120,13 @@ public class PlaylistsMenuitem : PlayerItem
return false;
}
+ private bool is_video_related (PlaylistDetails new_detail)
+ {
+ var location = (string)new_detail.path;
+ if (location.contains ("/VideoLibrarySource/")) return true;
+ return false;
+ }
+
public void active_playlist_update (PlaylistDetails detail)
{
var update = detail.name;