<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" > <xsl:output omit-xml-declaration="yes" method="text" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="no" encoding="UTF-8" /><xsl:strip-space elements="*"/> <xsl:template match = "/icestats" > <xsl:for-each select="source"> <xsl:value-of select="metadata_updated" /> </xsl:for-each> </xsl:template> </xsl:stylesheet>
Time: 211.42 2014/02/13 17:28:08 => Amon DГјГјl II - Good bye my love 2014/02/13 17:23:22 => The Walkmen - Save The Last Dance For Me (feat. Ian Svenonius) 2014/02/13 17:17:37 => Moderat - Therapy 2014/02/13 17:13:08 => The Black Ryder - To Never Know You 2014/02/13 17:08:59 => Wolfmother - 10,000 Feet 2014/02/13 17:06:24 => Tinkerbell's Fairydust - In My Magic Garden [12/1967] 2014/02/13 17:03:00 => Polvo - Lantern 2014/02/13 16:59:16 => Truckfighters - Loose 2014/02/13 16:55:09 => Mercury Rev - Vermillion 2014/02/13 16:52:03 => The Black Box Revelation - 5 O'Clock Turn Back The Time
#!/usr/bin/liquidsoap set("log.file.path","/var/data/test.log") set("log.level",3) # Загрузка плейлиста 1 myplaylist = mksafe(playlist(reload=3000, '/var/data/music')) # Загрузка джинглов jingles = mksafe(playlist("/var/data/promo")) radio = myplaylist radio = rotate(weights = [1, 4],[jingles, radio]) # включение telnet-сервера set("server.telnet.bind_addr","127.0.0.1") set("server.telnet.port",1231) set("server.telnet",true) # Пропускать тишину во всех плейлистах # Cut blanks (bonus-tracks) s = skip_blank(length=5.) # Настройка crossfade # radio = normalize( radio ) radio = smart_crossfade(start_next=2.0,fade_out=3.0,fade_in=3.0,radio) # Запуск основного потока mp3 output.icecast(%mp3,description = "MP3", host = "localhost", port = 80, password = "PASSWD", mount = "test", radio, name = "NAME", url = "http://site.com", genre = "GENRE",)
# source плейлисты general_list = smart_crossfade(start_next=3.,fade_out=2.3,fade_in=0.7, playlist(reload=3600,"~/GEN")) ps_list = smart_crossfade(start_next=5.,fade_in=6.,fade_out=3., conservative=false, high=-28., medium=-48., mksafe(input.http("http://trololo.ru/stream"))) .... ... mix_list = smart_crossfade(start_next=3.,fade_out=2.3,fade_in=0.7, playlist(reload=3600,"~/MIX")) relax_list = smart_crossfade(start_next=3.,fade_out=2.3,fade_in=0.7, playlist(reload=3600,"~/RELAX")) jingle_list = playlist(reload=600,mode="random","~/jingles") general = rotate(weights = [1, 4],[jingle_list, general_list]) #расписание эфира первое - высший приоритет default = switch(track_sensitive=false, [ ({ (2w) and 0h - 1h }, ps_list), ({ 7h - 8h or 12h -13h }, mix_list), ... ...... ({ 0h - 1h or 2h - 7h or 8h - 12h or 13h - 17h or 18h - 23h }, general), ({ true }, general) ]) .... далее используется crossfade и mksafe которые так же пробовал убирать, не помогло ..
def rewrite_dynamic_metadata(pls,lab) = content = list.hd(get_process_lines("/Clients/WWW/exec/radio/radio_title.php #{lab}")) log("--- Add META dynamic: #{content}") rewrite_metadata([ ("artist",meta_artist), ("title", "#{meta_title1} #{content} #{meta_title2}" ), ("comment",meta_comment) ],pls) end
iplaylist = rewrite_dynamic_metadata(iplaylist,"vinterview")
def xfade(a,b) add(normalize=false, [ sequence([ blank(duration=1.), fade.initial(duration=2.,b) ]), fade.final(duration=2.,a) ]) end
iplaylist = delay(5.,input.external(samplerate=7800,restart=true,restart_on_error=true,"/Clients/WWW/exec/radio/radio_stream.php")) iplaylist = filter(freq=2200.,q=0.7,mode="low",iplaylist) iplaylist = filter(freq=10.,q=0.8,mode="high",iplaylist) iplaylist = audio_to_stereo(iplaylist) iplaylist = amplify(osc.float("/seek3",3.),iplaylist) iplaylist = rewrite_dynamic_metadata(iplaylist,"vinterview")
source = on_track(rewrite_dynamic_metadata_01(source,"string"),source)
def rewrite_dynamic_metadata_01(m) = log("--- Callback is empty #{m}") end
def rewrite_dynamic_metadata_01(m,source,string) = ..... end
2014/04/06 08:59:09 [lang:1] ---- Transition blognews: = a: empty_9211 b: blognews 2014/04/06 09:00:11 [lang:1] ---- Transition else: = a: empty_9222 b: strip_blank_8817 2014/04/06 09:00:11 [lang:1] ---- Transition else: = a: empty_9241 b: switch_8816 2014/04/06 10:00:00 [lang:1] ---- Transition else: = a: empty_9260 b: quota_8833 2014/04/06 10:00:02 [lang:1] ---- Transition else: = a: map_metadata_8751 b: quota_8812 2014/04/06 10:00:42 [lang:1] ---- Transition else: = a: empty_9295 b: blogin 2014/04/06 10:00:42 [lang:1] ---- Transition else: = a: empty_9314 b: strip_blank_8819 2014/04/06 10:00:43 [lang:1] ---- Transition else: = a: empty_9333 b: strip_blank_8820 2014/04/06 10:00:45 [lang:1] ---- Transition blognews: = a: empty_9352 b: blognews 2014/04/06 10:01:47 [lang:1] ---- Transition else: = a: empty_9363 b: strip_blank_8817 2014/04/06 10:02:05 [lang:1] ---- Transition else: = a: empty_9382 b: speechblog 2014/04/06 10:02:06 [lang:1] ---- Transition else: = a: empty_9401 b: strip_blank_8819 2014/04/06 10:02:07 [lang:1] ---- Transition else: = a: empty_9420 b: strip_blank_8820 2014/04/06 10:02:44 [lang:1] ---- Transition else: = a: empty_9439 b: blogin 2014/04/06 10:02:44 [lang:1] ---- Transition else: = a: empty_9458 b: strip_blank_8817 2014/04/06 10:02:57 [lang:1] ---- Transition else: = a: empty_9477 b: map_metadata_8751 2014/04/06 10:02:58 [lang:1] ---- Transition else: = a: empty_9496 b: strip_blank_8819 2014/04/06 10:02:59 [lang:1] ---- Transition else: = a: empty_9515 b: strip_blank_8820 2014/04/06 10:03:00 [lang:1] ---- Transition else: = a: map_metadata_8751 b: quota_8812