diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-02-15 14:25:29 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-02-15 14:25:29 -0800 |
commit | a856a4946fc8039d286bd26e5084c0bbe828fa91 (patch) | |
tree | b4796bc40e5ec5643bbaa1170cc37a14554fe1b7 | |
parent | 497ae37bae7a70c39aa96bc72a6f5259e6698070 (diff) | |
parent | 055cd6b29b19189b52f119289dcfcfb78ad3e881 (diff) | |
download | dsub-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.java | 7 |
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 { |