![]() |
#1 |
Junior Member
Join Date: Feb 2011
Posts: 16
|
Shoutcast script issues after Updating from V1 to V2
Hello!
I need some help from a capable programmer which is familiar with Shoutcast scripts. I'm using Shoutcast V1 since over 18 years but I'm planning to use Shoutcast V2 soon for our website. I have already set up and running some Shoutcast V2 test servers from our Cast Control panel. The main problem is that some of our scripts (displaying song title history, listeners stats and server status) are not working any more. Additionally displaying the "DJ Live"-Status is not possible any more due to the missing "AIM-Field" which we use in Shoutcast V1 for overriding the live status. I've attached one of the not working scripts below. If anyone is able to help us updating the scripts, please let me know. I would also be ready for a fair payment. |
![]() |
![]() |
![]() |
#2 |
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,491
|
taking a look.... in what language are the scripts written? php, perl, html, javascript?
/* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2011
Posts: 16
|
The scripts are mostly in PHP, partially Javascript. If you can help us, please get in contact with me. I have some other scripts which are not working any more but we urgently need them to keep our radio alive.
|
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Feb 2011
Posts: 16
|
Seems the I can't edit my post any more. The script above is one of two scripts that aren't working (Admin Panel reports: "Bad Login"). Another script for our playlist voting system results to a "internal server error" when using together with a Shoutcast 2 Port but works with V1. I don't think thats a big deal as the XML-Scripts just have to be updated, not the whole scripts.
Also it would be very nice to update our "live status scripts" which shows wether our server is running (pending) or online (streaming). This is still working partially but as Shoutcast V2 don't support additional info fields like "Stream AIM" or "Stream IRC" which we abused to send informations though our Shoutcast DSP to display the "DJ Live Status" on our website, we can't display the "DJ Live" image any more. The script simply display when the Shoutcast is online but don't display the "DJ Live" image. I think this is only possible with additional custom informations in the song artist or title but then we would need extra coding in ths script and probably custom settings in our Shoutcast DSP (if this is possible). I also attached this simple script here so that you can see what I mean. |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Feb 2011
Posts: 16
|
No one here who can or wants to help? Just wanna let die another longtime project???
![]() Well, it was worth a try. ![]() |
![]() |
![]() |
![]() |
#6 | |
Major Dude
Join Date: Mar 2011
Posts: 567
|
1. Your station won't die just because this external script doesn't work anymore. Your shoutcast servers are running without it. It counts only your listeners and regions of their IPs. So keep calm and wait for a solution.
2. The solution is not only a simple edit of the file. This script is outdated, its 10 or more years old and needs a whole recoding for php7 and Shoutcast v2, because some functions are not more valid with PHP7 and the passed XML-structure is different to shoutcast v1. The whole array have to refilled based on the v2 stucture. The used flags and IP-regions are also outdated. Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,491
|
@PARALAX:
Do you have any screenshots of what your output looks like? @neralex is right, but there are scripts that get both the admin and public stats, so i can present the data to your html in pretty much the same way. Another thing, with respect to the DJ Name stuff, you could create that with php and a hard file, or you can use a v2 source which provides a dj field (it also may be possible to update the dj via admincgi, similar to a track title update, so that it can be retrieved via public stats.html). when i get something running I'll post a link or code for you to try. edit:add the admin.cgi to update DJ name: code: edit:add2 after doing the above, your /stats?sid=# will look like this... http://digitalmix.ddns.net:30011/stats?sid=2 /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
![]() |
![]() |
![]() |
#8 |
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,491
|
related thread - multi server admin stats -- http://forums.winamp.com/showthread.php?t=451430
/* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
![]() |
![]() |
![]() |
#9 | ||
Junior Member
Join Date: Feb 2011
Posts: 16
|
Update
Quote:
@djSpinnerCee: I will get in contact with you to send you all of our scripts to explain how it's working. Would it be possible to skype with you this weekend? Quote:
https://www.radio-paralax.de/script_...caststatus.php The most important script is the "Vote System" which is responsible to count the listeners votes from our website. It's an individual script which was made almost 10 years before for our website but as the author isn't available any more, there was no one who could update it. Unfortunately it's not working with Shoutcast V2 any more as it results to an "internal server error" when using a SC2-Port: https://www.radio-paralax.de/script2...caststatus.php ![]() The other script not working correctly has been attached in my first posting. It works at least partially which means that I still can see the listeners status when accessing the "status_mini.php" file. But when I try to access the "status_admin.php" file in "admin" folder, I get an "Bad Login" error: https://www.radio-paralax.de/script2...atus_admin.php Other scripts still seems to work with Shoutcast V2: https://www.radio-paralax.de/script2...caststatus.php (Show last 20 songs) https://www.radio-paralax.de/script2.../sc_status.php (Shoutcast Online status and listeners counter) - It shows wether the shoutcast server is Offline (red), Online (yellow) and used by a stream source (green). But due to the missing "AIM" field inside the script we can't show the "DJ Live Status" any more. The script still stays to "green" and nothing happens. We abuse the "AIM" information from the 7.html (which still seems to exist) for switching to "DJ Live" status and show another diffenet graphics: https://www.radio-paralax.de/gfx/status_dsl_live.gif The current Shoutcast V2 running from Port 8989 is just for testing the scripts yet. It's connected from a 8999 Port relay as our current Cast Control software don't support "SC2 Mountpoints". It should later run through just one SC2-Server. The normal working V1 functions can be checked directly from our website: https://www.radio-paralax.de/ (see right HTML widgets). I have packed all of our scripts except the vote system due to copyright issues here: https://drive.google.com/file/d/1dk3...ew?usp=sharing But I also can share the link of the "vote system" script as private message for peoples who want to work on that. |
||
![]() |
![]() |
![]() |
|
Tags |
nowplaying php |
Thread Tools | Search this Thread |
Display Modes | |
|
|