diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-01-11 18:07:21 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-01-11 18:07:21 -0800 |
commit | f4db59f5744bcab94d2ded1e2874f5e53c9e8e33 (patch) | |
tree | 7a4fa40343df7a6b1f8db4d8a98008eab74cea2e /app | |
parent | 2d63cbdd166da2dc7d96dbde95c37cf78b985871 (diff) | |
download | dsub-f4db59f5744bcab94d2ded1e2874f5e53c9e8e33.tar.gz dsub-f4db59f5744bcab94d2ded1e2874f5e53c9e8e33.tar.bz2 dsub-f4db59f5744bcab94d2ded1e2874f5e53c9e8e33.zip |
Auto: take out video and 1 star rated songs
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java | 10 |
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; } |