diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-02-17 08:29:28 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-02-17 08:29:28 -0800 |
commit | f423a040672044c667555870605490c28a0e1229 (patch) | |
tree | 11246f7a31851cfa63eab21d73431da94bd01865 /src/github/daneren2005 | |
parent | 79a31e6f5cb7656b14b1cae71f7c29dcac1d2a7a (diff) | |
download | dsub-f423a040672044c667555870605490c28a0e1229.tar.gz dsub-f423a040672044c667555870605490c28a0e1229.tar.bz2 dsub-f423a040672044c667555870605490c28a0e1229.zip |
#435 Don't add 0-rated songs to shuffle buffers
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/util/ArtistRadioBuffer.java | 2 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/util/ShufflePlayBuffer.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/util/ArtistRadioBuffer.java b/src/github/daneren2005/dsub/util/ArtistRadioBuffer.java index f3fc5904..6e9b8309 100644 --- a/src/github/daneren2005/dsub/util/ArtistRadioBuffer.java +++ b/src/github/daneren2005/dsub/util/ArtistRadioBuffer.java @@ -123,7 +123,7 @@ public class ArtistRadioBuffer { synchronized (buffer) { lastCount = 0; for(MusicDirectory.Entry entry: songs.getChildren()) { - if(!buffer.contains(entry)) { + if(!buffer.contains(entry) && entry.getRating() != 1) { buffer.add(entry); lastCount++; } diff --git a/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java b/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java index 5235a1f3..7da35f77 100644 --- a/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java +++ b/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java @@ -144,7 +144,7 @@ public class ShufflePlayBuffer { synchronized (buffer) { lastCount = 0; for(MusicDirectory.Entry entry: songs.getChildren()) { - if(!buffer.contains(entry)) { + if(!buffer.contains(entry) && entry.getRating() != 1) { buffer.add(entry); lastCount++; } |