2008-03-16, 02:28
Hi everyone! I've been using XBMC for quite a while now, but I've just signed up here... great job on it!
I'm comfortable enough to be dangerous with scripts in Python as I'm familiar with Perl and PHP. I've made a couple changes to RunXM 0.11 in case anyone else might be interested.
There were a couple changes that took place on the websites that the script calls to, and that made some parts not work...
- XM Radio changed the location of, and the file names of the stations' images. The images used to be called from the script as a "token" variable in XmBase.py that were (and are still) hard coded into XmBase.py; I don't know if it will break the script by removing those, so I left them. Images are now named the channel number plus ".jpg", so I've changed from using the "token" variable to show the image to using the "number" variable instead.
- The size of the images are smaller: 130x58 instead of 150x150. These images, once downloaded, are now saved to the "RunXM/images" folder (more for organizational preference than anything else).
- Sloth Radio's cover search pages changed URLs and the way searches are formatted, and didn't forward searches through the old method to the new method. The formatting of the search result web page was changed also.
(edit: removed incorrectly indented code; all improvements/fixes are available through the download links within this topic)
http://www.xbmczone.com/plugin_details.asp?id=57
http://www.leknifragonline.net/RunXM/RunXM.zip
I'm comfortable enough to be dangerous with scripts in Python as I'm familiar with Perl and PHP. I've made a couple changes to RunXM 0.11 in case anyone else might be interested.
There were a couple changes that took place on the websites that the script calls to, and that made some parts not work...
- XM Radio changed the location of, and the file names of the stations' images. The images used to be called from the script as a "token" variable in XmBase.py that were (and are still) hard coded into XmBase.py; I don't know if it will break the script by removing those, so I left them. Images are now named the channel number plus ".jpg", so I've changed from using the "token" variable to show the image to using the "number" variable instead.
- The size of the images are smaller: 130x58 instead of 150x150. These images, once downloaded, are now saved to the "RunXM/images" folder (more for organizational preference than anything else).
- Sloth Radio's cover search pages changed URLs and the way searches are formatted, and didn't forward searches through the old method to the new method. The formatting of the search result web page was changed also.
(edit: removed incorrectly indented code; all improvements/fixes are available through the download links within this topic)
http://www.xbmczone.com/plugin_details.asp?id=57
http://www.leknifragonline.net/RunXM/RunXM.zip