You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've checked the code and found this implementation of MPD::Playlist#songs:
# Lists the songs in the playlist. Playlist plugins are supported.# @return [Array<MPD::Song>] songs in the playlist.defsongsresult=@mpd.send_command(:listplaylistinfo,@name)result.mapdo |hash|
ifhash[:file] && !hash[:file].match(/^(https?:\/\/)?/)[0].empty?Song.new(@mpd,{:file=>hash[:file],:time=>[0]})elseSong.new(@mpd,hash)endendrescueTypeErrorputs"Files inside Playlist '#{@name}' do not exist!"return[]rescueNotFoundreturn[]# we rescue in the case the playlist doesn't exist.end
Code
Output
I've checked the code and found this implementation of
MPD::Playlist#songs
:The problem is, that
result
looks like this:But the code requires
result
to look like this:Edit: I am using MPD 0.18.0
The text was updated successfully, but these errors were encountered: