Skip to content

Commit

Permalink
Upd: call blissify with --seed-song option
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Jul 8, 2024
1 parent dd3d50f commit a5ac542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jukebox/JukeboxBlissify.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"name": "JukeboxBlissify", "file": "Jukebox/JukeboxBlissify.lua", "version": 4, "desc": "Uses blissify-rs to populate the jukebox queue.", "order":0,"arguments":["addToQueue"]}
-- {"name": "JukeboxBlissify", "file": "Jukebox/JukeboxBlissify.lua", "version": 5, "desc": "Uses blissify-rs to populate the jukebox queue.", "order":0,"arguments":["addToQueue"]}
local blissify_path = mympd_env.var_blissify_path
local blissify_config = ""
if mympd_env.var_blissify_config ~= nil and
Expand Down Expand Up @@ -68,7 +68,7 @@ end
local full_song_path = mympd_state.music_directory .. "/" .. last_song
local prefix_len = #mympd_state.music_directory + 2
local songs = {}
local cmd = string.format("%s %s playlist --dry-run --from-song \"%s\" %d 2>/dev/null", blissify_path, blissify_config, full_song_path, to_add)
local cmd = string.format("%s %s playlist --seed-song --dry-run --from-song \"%s\" %d 2>/dev/null", blissify_path, blissify_config, full_song_path, to_add)
local output = mympd.os_capture(cmd)
for line in string.gmatch(output, "[^\n]+") do
table.insert(songs, string.sub(line, prefix_len))
Expand Down

0 comments on commit a5ac542

Please sign in to comment.