aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-02-14 11:33:14 -0800
committerScott Jackson <daneren2005@gmail.com>2014-02-14 11:33:14 -0800
commit055cd6b29b19189b52f119289dcfcfb78ad3e881 (patch)
tree7385f8f1376a29f13d288a918962be0bb230fa79 /src/github/daneren2005
parentb28cf73fdf15b5fe47382b0832fa69b7070e14b6 (diff)
downloaddsub-055cd6b29b19189b52f119289dcfcfb78ad3e881.tar.gz
dsub-055cd6b29b19189b52f119289dcfcfb78ad3e881.tar.bz2
dsub-055cd6b29b19189b52f119289dcfcfb78ad3e881.zip
#278 Don't scrobble podcasts
Diffstat (limited to 'src/github/daneren2005')
-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 {