Commit 81f37f32 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Cue: support COMMENT

parent 94932dc4
...@@ -66,6 +66,7 @@ function cue_track( global, track ) ...@@ -66,6 +66,7 @@ function cue_track( global, track )
t.artist = track.performer or global.performer t.artist = track.performer or global.performer
t.genre = track.genre or global.genre t.genre = track.genre or global.genre
t.date = track.date or global.date t.date = track.date or global.date
t.description = global.comment
t.tracknum = track.num t.tracknum = track.num
t.options = { ":start-time=" .. math.floor(track.index01) } t.options = { ":start-time=" .. math.floor(track.index01) }
...@@ -103,6 +104,8 @@ function parse() ...@@ -103,6 +104,8 @@ function parse()
data.genre = cue_string( value ) data.genre = cue_string( value )
elseif( subcmd == "DATE" and value ) then elseif( subcmd == "DATE" and value ) then
data.date = cue_string( value ) data.date = cue_string( value )
elseif( subcmd == "COMMENT" and value ) then
data.comment = cue_string( value )
end end
elseif( cmd == "PERFORMER" and arg ) then elseif( cmd == "PERFORMER" and arg ) then
data.performer = cue_string( arg ) data.performer = cue_string( arg )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment