summaryrefslogtreecommitdiff
path: root/contrib/eventcmd-examples/eventcmd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/eventcmd-examples/eventcmd.sh')
-rwxr-xr-xcontrib/eventcmd-examples/eventcmd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/eventcmd-examples/eventcmd.sh b/contrib/eventcmd-examples/eventcmd.sh
index 32ffa00..2c0b159 100755
--- a/contrib/eventcmd-examples/eventcmd.sh
+++ b/contrib/eventcmd-examples/eventcmd.sh
@@ -25,7 +25,7 @@ case "$1" in
# songfinish)
# # scrobble if 75% of song have been played, but only if the song hasn't
# # been banned
-# if [ -n "$songDuration" ] &&
+# if [ -n "$songDuration" ] && [ "$songDuration" -ne 0 ] &&
# [ $(echo "scale=4; ($songPlayed/$songDuration*100)>50" | bc) -eq 1 ] &&
# [ "$rating" -ne 2 ]; then
# # scrobbler-helper is part of the Audio::Scrobble package at cpan