From f4db59f5744bcab94d2ded1e2874f5e53c9e8e33 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 11 Jan 2016 18:07:21 -0800 Subject: Auto: take out video and 1 star rated songs --- .../daneren2005/dsub/util/compat/RemoteControlClientLP.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java b/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java index 8185bf19..bad9c0f6 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java +++ b/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java @@ -366,7 +366,15 @@ public class RemoteControlClientLP extends RemoteControlClientBase { } else { musicDirectory = musicService.getMusicDirectory(dirId, "dir", false, downloadService, null); } - playSongs(musicDirectory.getChildren(false, true), shuffle, append, playFromBookmark); + + List playEntries = new ArrayList<>(); + List allEntries = musicDirectory.getChildren(false, true); + for(Entry song: allEntries) { + if (!song.isVideo() && song.getRating() != 1) { + playEntries.add(song); + } + } + playSongs(playEntries, shuffle, append, playFromBookmark); return null; } -- cgit v1.2.3