Hi Juan

By curated list I was just meaning the track info that your script was 
gathering.

I'm actually ok with javascript - it's the Ocaml stuff that I struggle with. 
And I'm keen to find out how I can get liquidsoap to not play tracks based on a 
list, wherever it may be sourced from.

Thanks for your help though!

R

> On 4 Mar 2024, at 20:31, Juan Amores <canalamo...@gmail.com> wrote:
> 
> P.S. 2
> JS code snippet that obtains metadata from the Icecast web server and 
> separates it by "artist" and "track" so that you can use it to incorporate it 
> into your website or use it in any way that is useful to you, since they are 
> variables. In the example I give you, it will show them through the browser 
> console. In my case, I use the Microsoft Edge developer tools to view them.
> 
> Remember to change the IP (or domain) and port of your Icecast server at the 
> beginning of the script and keep in mind that I use the Icecast 2.4.4 
> version, I don't know if the HTML data structure is maintained in other 
> versions.
> 
> El lun, 4 mar 2024 a las 17:29, Juan Amores (<canalamo...@gmail.com 
> <mailto:canalamo...@gmail.com>>) escribió:
>> Hello again Rick,
>> 
>> I'm not familiar with the term 'curated lists.' No songs or playlists are 
>> exempted; the script captures everything that is played and the metadata 
>> that arrives at the Icecast web. It then incorporates this information into 
>> a player on my website.
>> 
>> If you are interested in the JS solution and have opened a thread on Github, 
>> please provide me with the link so I can share the code with you. Gmail 
>> doesn't allow me to attach JS files here, and if I compress it, it says it 
>> has a virus.
>> 
>> P.S.
>> I've uploaded it to Pastebin for you to see and test: 
>> https://pastebin.com/kXKzPMAM
>> 
>> I hope I've helped you.
>> Juan
>> 
>> El lun, 4 mar 2024 a las 6:40, TDAS via Savonet-users 
>> (<savonet-users@lists.sourceforge.net 
>> <mailto:savonet-users@lists.sourceforge.net>>) escribió:
>>> Hi Juan
>>> 
>>> That might work as a solution. I can roughly figure something out along 
>>> those lines. Do you have anything in place for actually avoiding the tracks 
>>> that are in the curated lists though? Or are you just using them for 
>>> another purpose?
>>> 
>>> R
>>> 
>>>> On 4 Mar 2024, at 02:43, Juan Amores <canalamo...@gmail.com 
>>>> <mailto:canalamo...@gmail.com>> wrote:
>>>> 
>>>> Hi Rick,
>>>> 
>>>> On my website I obtain the metadata directly from the json of the Icecast 
>>>> website (supposedly not recommended option in case the structure changes 
>>>> in the future, but it has worked fine for over a year).
>>>> To do this, I made a JavaScript script that runs continuously and extracts 
>>>> the metadata in the Artist - Track format. Then from there I transfer it 
>>>> to the DOM of the website
>>>> But it is easy to modify it to isolate only the Artist in the JS using 
>>>> indexOf to find the position of the " - " separator in the string "Artist 
>>>> - Track". Then use substring to extract just the artist name.
>>>> If you are interested in that I can help you, now if you want to do it 
>>>> directly from Liquidsoap I can't help you.
>>>> 
>>>> Juan
>>>> 
>>>> El dom, 3 mar 2024 a las 7:41, TDAS via Savonet-users 
>>>> (<savonet-users@lists.sourceforge.net 
>>>> <mailto:savonet-users@lists.sourceforge.net>>) escribió:
>>>>> Hi folks
>>>>> 
>>>>> Wondered whether anyone has got a working routine for handling artists 
>>>>> and track separation? I'm trying to understand how this might work...
>>>>> 
>>>>> Rick
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Savonet-users mailing list
>>>>> Savonet-users@lists.sourceforge.net 
>>>>> <mailto:Savonet-users@lists.sourceforge.net>
>>>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>>> _______________________________________________
>>>> Savonet-users mailing list
>>>> Savonet-users@lists.sourceforge.net 
>>>> <mailto:Savonet-users@lists.sourceforge.net>
>>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>> 
>>> _______________________________________________
>>> Savonet-users mailing list
>>> Savonet-users@lists.sourceforge.net 
>>> <mailto:Savonet-users@lists.sourceforge.net>
>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
> _______________________________________________
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users

_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to