aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-02-15 14:25:29 -0800
committerScott Jackson <daneren2005@gmail.com>2014-02-15 14:25:29 -0800
commita856a4946fc8039d286bd26e5084c0bbe828fa91 (patch)
treeb4796bc40e5ec5643bbaa1170cc37a14554fe1b7
parent497ae37bae7a70c39aa96bc72a6f5259e6698070 (diff)
parent055cd6b29b19189b52f119289dcfcfb78ad3e881 (diff)
downloaddsub-a856a4946fc8039d286bd26e5084c0bbe828fa91.tar.gz
dsub-a856a4946fc8039d286bd26e5084c0bbe828fa91.tar.bz2
dsub-a856a4946fc8039d286bd26e5084c0bbe828fa91.zip
Merge branch 'master' of https://github.com/daneren2005/Subsonic
-rw-r--r--src/github/daneren2005/dsub/service/Scrobbler.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/Scrobbler.java b/src/github/daneren2005/dsub/service/Scrobbler.java
index 222c78c8..c920475a 100644
--- a/src/github/daneren2005/dsub/service/Scrobbler.java
+++ b/src/github/daneren2005/dsub/service/Scrobbler.java
@@ -21,6 +21,12 @@ public class Scrobbler {
if (song == null || !Util.isScrobblingEnabled(context)) {
return;
}
+
+ // Ignore podcasts
+ if(song.getSong() instanceof PodcastEpisode) {
+ return;
+ }
+
final String id = song.getSong().getId();
// Avoid duplicate registrations.
@@ -30,6 +36,7 @@ public class Scrobbler {
if (!submission && id.equals(lastNowPlaying)) {
return;
}
+
if (submission) {
lastSubmission = id;
} else {