diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -126,7 +126,8 @@ int main (int argc, char **argv) { scrobbleSong.length = player.songDuration / BAR_PLAYER_MS_TO_S_FACTOR; /* scrobble when >= nn% are played; use seconds, not * milliseconds */ - if (player.songPlayed / BAR_PLAYER_MS_TO_S_FACTOR * 100 / + if (scrobbleSong.length > 0 && + player.songPlayed / BAR_PLAYER_MS_TO_S_FACTOR * 100 / scrobbleSong.length >= settings.lastfmScrobblePercent && settings.enableScrobbling) { WardrobeReturn_t wRet; |