|
 |
|
02-22-2008, 01:07 PM
|
#1
|
|
Constant Bitrate
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
|
Generate a complete xmcache.ini
I am posting here because RR is the only front-end I use and I don't know if xmcache is used in other front ends. If this is the wrong place, let me know and I will ask the admin to move the thread.
Since I got sick of the xmcache.ini file being out of date, I just wrote a quick tool to take the lineup page created from xmradio.com and generate a corresponding xmcache.ini file.
The instructions (which come up first when you run it) are:
Code:
Go to: http://www.xmradio.com/onxm/full-channel-listing.xmc
and save the web page by using <Alt>-F, Save As...
The filename must be "XM Channel Lineup.htm"
Run this tool in the same file as where you save the HTM file
The file xmcache.ini will be created as the output file.
Place this file in the RoadRunner folder.
Hit any key to start processing the HTM file...
I have an exe, but would like someone else to test it before I post it. If you're interested, please email me and I'll send you the exe.
steve@meisners.net
Steve
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
02-23-2008, 09:30 AM
|
#2
|
|
FLAC
Join Date: Jun 2003
Location: Memphis - TN
Posts: 1,195
|
get this error on both versions.
__________________
2007 Mazdaspeed 6
|
|
|
02-23-2008, 10:57 AM
|
#3
|
|
Constant Bitrate
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
|
So far the second version is working for others. Are you running Windows Vista? I haven't tested it on Vista.
Try moving the exe and the .htm file to C:\ and running it from a DOS command box.
|
|
|
02-23-2008, 11:24 AM
|
#4
|
|
Maximum Bitrate
Join Date: May 2005
Location: Lawrenceville GA
Posts: 709
|
Quote: Originally Posted by meisner 
So far the second version is working for others. Are you running Windows Vista? I haven't tested it on Vista.
Try moving the exe and the .htm file to C:\ and running it from a DOS command box.
Worked perfect for me. Great little app. Good job!
|
|
|
02-23-2008, 11:25 AM
|
#5
|
|
Constant Bitrate
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
|
Quote: Originally Posted by fixerofallthing 
Worked perfect for me. Great little app. Good job!
Thanks! What OS did you run it on?
|
|
|
02-23-2008, 11:42 AM
|
#6
|
|
Maximum Bitrate
Join Date: May 2005
Location: Lawrenceville GA
Posts: 709
|
Quote: Originally Posted by meisner 
Thanks! What OS did you run it on?
XP and Vista Ultimate
|
|
|
02-24-2008, 01:19 AM
|
#7
|
|
FLAC
Join Date: Jun 2003
Location: Memphis - TN
Posts: 1,195
|
xp pro..
worked via command line, thx
__________________
2007 Mazdaspeed 6
|
|
|
02-27-2008, 09:44 AM
|
#8
|
|
Constant Bitrate
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
|
If anyone tried sending me email since this past weekend, it probably got lost. So count on me never seeing it. I am back up now.
Here is the latest XMCache.exe util to generate the .ini file.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
08-07-2008, 07:59 AM
|
#9
|
|
Constant Bitrate
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
|
Updated XMCache generator
Last night I decided I didn't like how you had to first go to the XM site and get the HTML page manually, so I modified the tool to do it for you. Now, just run the attached XMCache.exe in a DOS box and it will automatically connect and generate the XMcache.ini file in the same directory.
Let me know if there's any problems.
Here's a sample output:
Code:
N:\XMCache\XMCache\Release>XMCache
IP is 209.170.118.10
Query is:
<<START>>
GET /onxm/full-channel-listing.xmc HTTP/1.0
Host: www.xmradio.com
User-Agent: HTMLGET 1.0
<<END>>
Done...wrote 194 channels
|
|
|
08-07-2008, 10:10 AM
|
#10
|
|
Constant Bitrate
Join Date: Aug 2005
Location: MA
Posts: 207
|
I keep getting this:
|
|
|
08-07-2008, 10:31 AM
|
#11
|
|
Constant Bitrate
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
|
Could you try this one? I was using a function to generate a temporary file name and use that. For some reason (maybe policies on your system?) it was failing to create the temp file. This new version doesn't rely on the tmpnam() function...hopefully this works.
I am actually using what is stated in the error message now for the temp name; 'XM Channel Lineup.htm'. If this doesn't work, then let me know.
|
|
|
08-07-2008, 10:40 AM
|
#12
|
|
Constant Bitrate
Join Date: Aug 2005
Location: MA
Posts: 207
|
Quote: Originally Posted by meisner 
Could you try this one? I was using a function to generate a temporary file name and use that. For some reason (maybe policies on your system?) it was failing to create the temp file. This new version doesn't rely on the tmpnam() function...hopefully this works.
I am actually using what is stated in the error message now for the temp name; 'XM Channel Lineup.htm'. If this doesn't work, then let me know.
Worked perfect and AMAZINGLY fast!!! thanks a million!
|
|
|
08-07-2008, 10:47 AM
|
#13
|
|
Constant Bitrate
Join Date: Aug 2005
Location: MA
Posts: 207
|
So, if I put this file into my RR directory, will it automatically overwrite the existing xmcache.ini everytime I run it? Can you make it save it as "read only"?
That way I can just make a shortcut to it on the desktop and run it periodically to make sure I always have an up to date file.
EDIT, I just tested it and it does not overwrite.
|
|
|
08-07-2008, 10:50 AM
|
#14
|
|
Constant Bitrate
Join Date: Mar 2007
Location: Nashua, NH
Posts: 187
|
No file attributes are applied to the new xmcache.ini file. So it is not read only. So yes, you could just keep running it regularly (assuming you have Internet connectivity) and always have a complete cache.
BTW...what version of Windows did you just run this on? I tried on an old XP machine here at work and it failed with a missing function in the winsock dll (ws2_32.dll).
|
|
|
08-07-2008, 10:54 AM
|
#15
|
|
Constant Bitrate
Join Date: Aug 2005
Location: MA
Posts: 207
|
Quote: Originally Posted by meisner 
No file attributes are applied to the new xmcache.ini file. So it is not read only. So yes, you could just keep running it regularly (assuming you have Internet connectivity) and always have a complete cache.
BTW...what version of Windows did you just run this on? I tried on an old XP machine here at work and it failed with a missing function in the winsock dll (ws2_32.dll).
OK, I made a mistake, it IS overwriting which is great. Is there any way to get it to set attributes?
I am testing this on my vista machine but it will eventually be put to work in my XP machine in the car.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:07 PM.
| |