Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
You didn't include the metadata rewriting there? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#issuecomment-416584179-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
no problem: https://pastebin.com/csKaWUUu -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#issuecomment-416472264-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
paste your full script so we can help... and opening another issue for this is quite rude in my opinion... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#issuecomment-416421779-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
Line 24, char 6 before "end": Parse error! -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#issuecomment-416306000-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
Both examples don't work. i simple change s to source3. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#issuecomment-416305053-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
Thanks, it don't work but now i edit them. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#issuecomment-416302918-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
You can try this: ``` def remove_colon(m) = def f(pair) = lbl = fst(pair) val = snd(pair) replace = fun (_) -> "" (lbl,string.replace(pattern=":",replace,lbl) end list.map(f,m) end s = map_metadata(remove_colon,s) ``` (Code untried) You could also be more specific by only rewriting some specific parts: ``` def remove_colon(m) = def strip(s) = replace = fun (_) -> "" string.replace(pattern=":",replace,s) end updated_meta = [] updated_meta = if m["title"] then list.add(("title",string.replace(m["title"]),updated_meta) else updated_meta end # Repeat for other labels. updated_meta end s = map_metadata(remove_colon,s) ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#issuecomment-416296795-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
I already test it: ``` At line 17, char 17-43: This term would evaluate to a (passive) source which would then be dropped. This is usually the sign of a misunderstanding: only active sources are animated on their own; dangling passive sources are just dead code. ``` could you give a more simple example? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#issuecomment-416294292-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
Closed #615. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#event-1811085136-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] Remove character from Metatag (#615)
Hi, You should be able to achieve that by using the `map_metadata` operator. It is described here: http://www.liquidsoap.info/doc-1.3.3/metadata.html -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/615#issuecomment-416293705-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users