mpd-current-json 1.5.0.0 → 1.5.0.1
raw patch · 3 files changed
+8/−2 lines, 3 files
Files
- CHANGELOG.md +6/−0
- mpd-current-json.cabal +1/−1
- src/Main.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,9 @@+# v1.5.0.1+- Fix `next_filename` to display correct filename URI.+ - It was using Id instead of Position. Position is a 0-indexed+ number, Id is 1-indexed and it was returning one song after the+ intended one in the playlist. Oops.+ # v1.5 - Add json keys - `volume`: Integer for volume percentage
mpd-current-json.cabal view
@@ -7,7 +7,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 1.5.0.0+version: 1.5.0.1 synopsis: Print current MPD song and status as JSON -- A longer description of the package.
src/Main.hs view
@@ -111,7 +111,7 @@ nextId = getStatusIdInt MPD.stNextSongID st playlistLength = getStatusField st MPD.stPlaylistLength - nextPlaylistSong <- withMpdOpts $ MPD.playlistInfo nextId+ nextPlaylistSong <- withMpdOpts $ MPD.playlistInfo nextPos let filename = maybePathCurrentSong cs filenameNext = maybePathNextPlaylistSong nextPlaylistSong