diff options
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 2 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/service/Scrobbler.java | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 9d30889d..77090e33 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -915,7 +915,7 @@ public class DownloadService extends Service { clearCurrentBookmark(true); } if(currentPlaying != null) { - scrobbler.conditionalScrobble(context, currentPlaying, position, duration); + scrobbler.conditionalScrobble(this, currentPlaying, position, duration); } int index = getCurrentPlayingIndex(); diff --git a/src/github/daneren2005/dsub/service/Scrobbler.java b/src/github/daneren2005/dsub/service/Scrobbler.java index 6772ec5d..239094fd 100644 --- a/src/github/daneren2005/dsub/service/Scrobbler.java +++ b/src/github/daneren2005/dsub/service/Scrobbler.java @@ -47,7 +47,8 @@ public class Scrobbler { } // Ignore songs which are under 30 seconds per Last.FM guidelines - if(song.getDuration() != null && song.getDuration() > 0 && song.getDuration < 30) { + Integer duration = song.getSong().getDuration(); + if(duration != null && duration > 0 && duration < 30) { return; } |