aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 {