How can I get the title of the current playlist on my website?
How can I get the title of the current playlist on my website?
Hi Bernd,
How can I get the title of the current playlist on my website?
For example, at this moment the 'dance-classics' playlist is playing.
Like to have 'dance-classics' on my website.
Can I do that with 'PLS_CURRENT_FILENAME_GET' ?
I guess it's something like this:
PLS_CURRENT_FILENAME_GET D:\Websites\XTended\widget-playlist.php|D:\Websites\XTended\nowplaying.php
EXEC_UPLOAD_FILE D:\Websites\XTended\widget-playlist.php|ftp://server25.hosting2go.nl/httpdocs/w ... e|password
Is this the way to do, or am I completely wrong?
How can I get the title of the current playlist on my website?
For example, at this moment the 'dance-classics' playlist is playing.
Like to have 'dance-classics' on my website.
Can I do that with 'PLS_CURRENT_FILENAME_GET' ?
I guess it's something like this:
PLS_CURRENT_FILENAME_GET D:\Websites\XTended\widget-playlist.php|D:\Websites\XTended\nowplaying.php
EXEC_UPLOAD_FILE D:\Websites\XTended\widget-playlist.php|ftp://server25.hosting2go.nl/httpdocs/w ... e|password
Is this the way to do, or am I completely wrong?
Re: How can I get the title of the current playlist on my website?
Yes, you are wrong, as the PLS_CURRENT_FILENAME_GET is a command to return the current playlist filename. But this value is not stored anywhere, a such it can only be used in a TCP interface.
You can use the ${cplname} or the ${plsname} macro to retrieve the name of the current playlist.
E.g. use this macro in your nowplaying.php template file.
Or use it in a EXEC_SEND_HTTP_GET command to submit it directly to your web-site...
You can use the ${cplname} or the ${plsname} macro to retrieve the name of the current playlist.
E.g. use this macro in your nowplaying.php template file.
Or use it in a EXEC_SEND_HTTP_GET command to submit it directly to your web-site...
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: How can I get the title of the current playlist on my website?
So I have to create it like this:
EXEC_SEND_HTTP_GET ${plsname} D:\Websites\XTended\widget-playlist.php|D:\Websites\XTended\nowplaying.php
EXEC_UPLOAD_FILE ${plsname} D:\Websites\XTended\widget-playlist.php|ftp://server25.hosting2go.nl/httpdocs/w ... e|password
EXEC_SEND_HTTP_GET ${plsname} D:\Websites\XTended\widget-playlist.php|D:\Websites\XTended\nowplaying.php
EXEC_UPLOAD_FILE ${plsname} D:\Websites\XTended\widget-playlist.php|ftp://server25.hosting2go.nl/httpdocs/w ... e|password
Re: How can I get the title of the current playlist on my website?
No!?
Please take a look to the User Manual's Appendix what the control-commands resp. macros actually do.
EXEC_SEND_HTTP_GET sends certain data to a given URL, e.g. a php script - so your example doesn't do that.
The php script then on the server side might evaluate this data and process it further.
How do you today send your song-title info to the server?
Also see these threads:
viewtopic.php?f=9&t=759
Please take a look to the User Manual's Appendix what the control-commands resp. macros actually do.
EXEC_SEND_HTTP_GET sends certain data to a given URL, e.g. a php script - so your example doesn't do that.
The php script then on the server side might evaluate this data and process it further.
How do you today send your song-title info to the server?
Also see these threads:
viewtopic.php?f=9&t=759
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: How can I get the title of the current playlist on my website?
I send my song-title info to the server with this command (the way you teach me):
OnSongTitleChanged -> EXEC_WRITE_PLAYLISTFILE D:\Websites\XTended\nowplaying\widget-nowplaying.php|D:\Websites\XTended\nowplaying\nowplaying.php
EXEC_UPLOAD_FILE D:\Websites\XTended\nowplaying\widget-nowplaying.php|ftp://server25.hosting2go.nl/httpdocs/w ... e|password
OnSongTitleChanged -> EXEC_WRITE_PLAYLISTFILE D:\Websites\XTended\nowplaying\widget-nowplaying.php|D:\Websites\XTended\nowplaying\nowplaying.php
EXEC_UPLOAD_FILE D:\Websites\XTended\nowplaying\widget-nowplaying.php|ftp://server25.hosting2go.nl/httpdocs/w ... e|password
Re: How can I get the title of the current playlist on my website?
Than this must be the one:
EXEC_SEND_HTTP_GET ftp://server.hosting2go.nl/httpdocs/wid ... e|password
EXEC_SEND_HTTP_GET ftp://server.hosting2go.nl/httpdocs/wid ... e|password
Re: How can I get the title of the current playlist on my website?
As said initially you can use the named macros than inside your nowplaying.php file like all the other macros you are alread using inside it.
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: How can I get the title of the current playlist on my website?
Sorry for not understanding you.
The playlist name is not transfering at the same time as the nowplaying info, cause when I look inside my nowplaying.php file no current playlist is written there <p>Schedule: ${plsname}</p>
Bernd, can you give me a little bit more info how to get that current playing playlist name on my site?
The playlist name is not transfering at the same time as the nowplaying info, cause when I look inside my nowplaying.php file no current playlist is written there <p>Schedule: ${plsname}</p>
Bernd, can you give me a little bit more info how to get that current playing playlist name on my site?
Re: How can I get the title of the current playlist on my website?
Please try the ${cplname} macro instead.
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: How can I get the title of the current playlist on my website?
In the nowplaying.php file I have both macros now: <h3>Schedule: ${plsname} ${cplname}</h3> but nothing happened.
Check online: https://xtendedradio.com/listenlive.php (nowplaying.php is an include).
Has it something to do with exclusions, now only music is active, see attachment.[attachment=0]PF-events.jpg[/attachment]
Check online: https://xtendedradio.com/listenlive.php (nowplaying.php is an include).
Has it something to do with exclusions, now only music is active, see attachment.[attachment=0]PF-events.jpg[/attachment]