1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00

Fix song id.

This commit is contained in:
Dan Barber 2013-10-18 15:43:25 +01:00
parent 280564c945
commit 38cb4e258e

View File

@ -3,8 +3,7 @@ require './models/mpd_connection'
class Song < Struct.new(:id, :artist, :album, :title, :playing) class Song < Struct.new(:id, :artist, :album, :title, :playing)
def initialize(song, playing: false) def initialize(song, playing: false)
@song = song self.id = song.id
self.id = song.songid
self.artist = song.artist self.artist = song.artist
self.album = song.album self.album = song.album
self.title = song.title self.title = song.title