Closed (fixed)
Project:
Shoutcast Streaming Server Statistics
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2010 at 07:24 UTC
Updated:
29 Oct 2010 at 21:04 UTC
Hello.
I've begun work to extend this module for purposes related to the Drupal Station module. I've cleaned up the code quite a bit, added a single shoutcast_get_xml() method, and now use this method to build both the block and the page. I've also added many of the other statistics available in SHOUTcast 1.9.8, including song history.
Although I anticipate doing a bit more work in relation to Station module integration, I'd love it if these updates made their way back into CVS here.
Comments
Comment #1
thumb commentedMore updates:
Separate options for field display in the block and on the page. Consolidate table row building and use one table row building function for block and page. Updated docblocks.
Corrected admin display default options for page and block.
To do:
Caching doesn't seem to be working properly in this update. I also just realized that cache should be used if we're not able to get a response from the server.
Were you having any issues with caching?
Comment #2
yohnson commentedI had not noticed any issues with the cache. the process is below
IF time to cache || cache empty.
---If either then get new data and populate the cache.
else
get data from cache and output
If the data is stale and the server is unresponsive what happens is the cache is cleared and nothing gets displayed, this will prevent the false feeling of a working installation while seeing stale cached data. I don't suggest showing stale data on error.
Comment #3
thumb commentedThanks! I'll investigate further. I just pushed a complete rework of statistics display on the shoutcast stats page to my GIT repo. I'd love any feed back you can provide.
http://github.com/ckieffer/drupal-shoutcast
Comment #4
thumb commentedCache fixed. I wasn't caching the object properly.
Comment #5
yohnson commentedThank you very much for the code additions. I have integrated them into the new Development version for review and testing by the community. I will move it to a stable release in about 1 month to obtain some feedback, if any.
Thank you for your contribution thumb
Comment #6
thumb commentedHappy to help! I'll do my best to monitor bug reports to help out, if needed.
Comment #7
yohnson commentedComment #8
yohnson commented