From 055cd6b29b19189b52f119289dcfcfb78ad3e881 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 14 Feb 2014 11:33:14 -0800 Subject: #278 Don't scrobble podcasts --- src/github/daneren2005/dsub/service/Scrobbler.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 { -- cgit v1.2.3