Permalink
Browse files

* mpv-lastfm.lua: update to handle scrobbler-1.1.4

  • Loading branch information...
l29ah committed Oct 26, 2017
1 parent e67290a commit 5ceeabd57a959b2115d8dda6da0f8193d44251bd
Showing with 2 additions and 2 deletions.
  1. +2 −2 last.fm/mpv-lastfm.lua
View
@@ -38,9 +38,9 @@ function scrobble()
optargs = string.format("%s '--album=%s'", optargs, esc(album))
end
if length then
optargs = string.format("%s '--duration=%d'", optargs, length)
optargs = string.format("%s '--duration=%ds'", optargs, length)
end
args = string.format("scrobbler scrobble '%s' '%s' '%s' now > /dev/null", esc(options.username), esc(artist), esc(title))
args = string.format("scrobbler scrobble %s -- '%s' '%s' '%s' now > /dev/null", optargs, esc(options.username), esc(artist), esc(title))
msg.debug(args)
os.execute(args)
end

0 comments on commit 5ceeabd

Please sign in to comment.