View previous topic :: View next topic |
Author |
Message |
Rokas
Joined: 19 May 2014 Posts: 9
|
Posted: Mon May 19, 2014 2:10 pm Post subject: status-json.xsl invalid without YP |
|
|
Hi,
I'm using Icecast 2.4 on Windows.
If YP directory doesn't allow me in, and station is not registered at YP, page status-json.xsl don't include string "yp_currently_playing" and it does not validate as JSON.
If it's not already know bug, tell me and I'll include more details with an example a bit later.
Let me know then this'll be solved, thanks.
Regards,
Rokas |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon May 19, 2014 8:32 pm Post subject: |
|
|
You had better report that on the xiph web site. There should not be a dependency on that particular setting.
karl. |
|
Back to top |
|
|
Rokas
Joined: 19 May 2014 Posts: 9
|
Posted: Tue May 20, 2014 5:01 am Post subject: |
|
|
There is an example, without YP listing, JSON invalid:
{"icestats":{"admin":"mail","host":"host","location":"loc","server_id":"Icecast 2.4.0","server_start":"Tue, 20 May 2014 07:53:56 FLE Daylight Time","server_start_iso8601":null,"source":{"audio_info":"ice-samplerate=44100;ice-bitrate=128;ice-channels=2","bitrate":128,"genre":"genre","ice-bitrate":128,"ice-channels":2,"ice-samplerate":44100,"listener_peak":0,"listeners":0,"listenurl":"host:8000/mount","server_description":"loc","server_name":"name","server_type":"audio/mpeg","server_url":"http://....","stream_start":"Tue, 20 May 2014 07:54:13 FLE Daylight Time","stream_start_iso8601":null,"title":"current song titel",}}
When I got listed is YP, it looks like this:
dio/mpeg","server_url":"http://example.com","stream_start":"Tue, 20 May 2014 07:54:13 FLE Daylight Time","stream_start_iso8601":null,"title":"Massive Attack - Dissolved Girl","yp_currently_playing":"Massive Attack - Dissolved Girl"}}}
You can see there is a comma at the end, if no "yp_currently_playing" is displayed.
Because of that I got other problems like parsing current song. [/b] |
|
Back to top |
|
|
dm8tbr
Joined: 09 Feb 2013 Posts: 45 Location: icecast.org
|
Posted: Sun Nov 02, 2014 1:31 pm Post subject: Fix in progress |
|
|
We're working on a fixed JSON transform that will ship with other important fixes in Icecast 2.4.1.
For those currently experiencing the problem, I'd recommend to try replacing status-json.xsl with my current work in progress (download the file, do NOT copy paste from your browser!). Feedback, if it really works under all conditions, would be very much appreciated! |
|
Back to top |
|
|
Rokas
Joined: 19 May 2014 Posts: 9
|
Posted: Mon Nov 03, 2014 5:50 am Post subject: |
|
|
Hi,
It solved my problem. Thanks. |
|
Back to top |
|
|
dm8tbr
Joined: 09 Feb 2013 Posts: 45 Location: icecast.org
|
Posted: Tue Nov 11, 2014 12:13 pm Post subject: |
|
|
The fix is now in the pending 2.4.1 release.
2.4.0 can by fixed by copying the file in place, although I recommend upgrading to 2.4.1.
Older Icecast versions can be JSON enabled by copying both related files into the webroot, although again I recommend upgrading to 2.4.1. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|