Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Stream Data Radio (Read 1938 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Stream Data Radio

I have some Radios that transmit data relating to the author, title, etc... which are spaced out by this symbol ~

This does not allow the correct distribution and visualization of the data.

Is it possible to do something?


Re: Stream Data Radio

Reply #1
Hi there!
@ApacheReal
For the Biography script (by @WilB ), add to the file advanced_radio_stream_parser.js the following:
Spoiler (click to show/hide)Similarly for other streams of this radio station.

Thanks for MC2 ;)

Re: Stream Data Radio

Reply #2
Hi there!
@ApacheReal
For the Biography script (by @WilB ), add to the file advanced_radio_stream_parser.js the following:
Spoiler (click to show/hide)Similarly for other streams of this radio station.

Thanks for MC2 ;)

I understood that it is possible, but I have not been able to do it.
I use TAGS.
I entered from line 94:

case 'https://edge.singsingmusic.net/mc2nudisco':
case 'https://edge.singsingmusic.net/singsingweb005':
item = item.split('~');
artist = (item[0] || '').trim();
title = (item[1] || '').trim();
breaks;

}


But it did not work.

I add that I see four data:
Artist
Title
Album Title
Year

Re: Stream Data Radio

Reply #3
ApacheReal,
Could you try the working file in the attachment? Save your file first.
As you know this file is located here: \foobar2000\profile\foo_spider_monkey_panel\package_data\{BA9557CE-7B4B-4E0E-9373-99F511E81252}\

What does the console display while listening to the MC2 stream?
Spoiler (click to show/hide)

Re: Stream Data Radio

Reply #4
Thank you for your availability and patience, but unfortunately it doesn't work.



Log /console follows

m-TAGS:: REFERENCED FILE: https://edge.singsingmusic.net/singsingweb006 [0]
Track couldn't be analyzed



Re: Stream Data Radio

Reply #6
No, that doesn't work either.



m-TAGS:: REFERENCED FILE: https://edge.singsingmusic.net/singsingweb006 [0]
original item ["Bliss", "Manvantara", "Quiet Letters", "2003"]
artist Bliss
title Manvantara
original item ["Bliss", "Manvantara", "Quiet Letters", "2003"]
artist Bliss

In console though it looks correct

Is in playlist view which appears incorrect

Re: Stream Data Radio

Reply #7
The parser only displays the transformation in the biography panel. It doesn't alter other elements like the playlist view.

Re: Stream Data Radio

Reply #8
in console it's right after you add:
}

        //mtag match $info(@)

        const mtag = $.eval('$info(@)', focus, ignoreLock);
        switch (mtag) {

Re: Stream Data Radio

Reply #9
At this point I wanted to understand if you see the correct data flow.

Re: Stream Data Radio

Reply #10
The correct artist and title is working and displaying ONLY in the Biography Panel as I explained above.
You should notice that the Biography panel is now showing the artist.
The data is not used in other panels, except by the Find and Play script.

Re: Stream Data Radio

Reply #11
Question :
I write in Jscript Panel 3 :

                var item_artist = tfo.artist.Eval();
                var item_title = tfo.title.Eval();
                item_artist = item_artist.split('/');
                item_title = item_title.split('/');

it works fine and remove '/' . But i need to remove also '~' ????
var item_artist = tfo.artist.Eval();
          
                item_artist = item_artist.split('/' + '~')  NOT WORKING ? HELP
          


Re: Stream Data Radio

Reply #12
The correct artist and title is working and displaying ONLY in the Biography Panel as I explained above.
You should notice that the Biography panel is now showing the artist.
The data is not used in other panels, except by the Find and Play script.

In sample Text Display (custom title)

$replace($replace(%title%,:,),~, - )



Re: Stream Data Radio

Reply #13
Fix name.....


Re: Stream Data Radio

Reply #14
it works fine and remove '/' . But i need to remove also '~' ????
var item_artist = tfo.artist.Eval();
          
                item_artist = item_artist.split('/' + '~')  NOT WORKING ? HELP
Code: [Select]
item_artist = item_artist.split(/[\/~]+/)
HTH.

Alessandro

EDIT:
Code: [Select]
item_artist = item_artist.split('/~')
should work as well, if item_artist is something like 'text1/~text2/~text3'

 

Re: Stream Data Radio

Reply #15
In streaming radio stream, this instruction:

$left(%title%,$sub($strchr(%title%,~),1,))

displays the title correctly, but removes the artist's name as seen in the image:



Is it possible to implement the string in such a way as to make the title and artist appear correctly and eliminate the rest?

Thank you