#36: blank processing eats metadatas
-------------------------+--------------------------------------------------
  Reporter:  toots       |       Owner:  toots    
      Type:  Bugs        |      Status:  assigned 
  Priority:  1           |   Milestone:           
 Component:  Liquidsoap  |     Version:  0.3.3+svn
Resolution:              |    Keywords:           
-------------------------+--------------------------------------------------
Comment (by mrpingouin):

 A similar one where in the current implementation the metadata of the
 track in the queue is lost if the queue is actively being pulled. The same
 problem occurs when sharing forces caching. Currently the metadata of the
 filename is only displayed as HIDDEN, but a fix should then also show it
 as GOT TITLE=... (I'm not asking if it's good or not since I have such a
 fix, and I like it :p)

 {{{

 filename = # as before
 single = # as before

 notify = fun (s) ->
   on_metadata(fun (m) -> log('GOT TITLE=#{m["title"]}'), s)
 nonotify = fun (s) ->
   on_metadata(fun (m) -> log('HIDDEN TITLE=#{m["title"]}'), s)

 r = request.queue(id="q")

 # Actively pull data from r, show metadata that gets out of it as HIDDEN
 output.dummy(id="oo",mksafe(nonotify(r)))

 output.dummy(id="o",
   notify(fallback([r,
                    output.dummy(id="ooo",irish)])))

 add_timeout(3.,{ log("PUSH")
                  ignore(execute('q.push #{filename}'))
                  100000. })
 add_timeout(9.,{ log("SKIP")
                  ignore(execute('ooo.skip'))
                  100000. })
 }}}

-- 
Ticket URL: <http://savonet.rastageeks.org/ticket/36#comment:4>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !

Répondre à