aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-01-11 18:07:21 -0800
committerScott Jackson <daneren2005@gmail.com>2016-01-11 18:07:21 -0800
commitf4db59f5744bcab94d2ded1e2874f5e53c9e8e33 (patch)
tree7a4fa40343df7a6b1f8db4d8a98008eab74cea2e
parent2d63cbdd166da2dc7d96dbde95c37cf78b985871 (diff)
downloaddsub-f4db59f5744bcab94d2ded1e2874f5e53c9e8e33.tar.gz
dsub-f4db59f5744bcab94d2ded1e2874f5e53c9e8e33.tar.bz2
dsub-f4db59f5744bcab94d2ded1e2874f5e53c9e8e33.zip
Auto: take out video and 1 star rated songs
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java10
1 files changed, 9 insertions, 1 deletions
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<Entry> playEntries = new ArrayList<>();
+ List<Entry> 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;
}