How to sort a downloaded (epg) XMLTV.XML file???

Help each other out

How to sort a downloaded (epg) XMLTV.XML file???

Postby smarty on Tue Aug 08, 2006 3:23 am

I have been able to download epg data from XMLTV using the following command line:

"xmltv.exe tv_grab_na_dd --days 3 --output xmltv.xml

The above command line creates the "xmltv.xml" data file that I have been able to pull up and see in xlobby (looks great).


My question is: How do I sort this data so xlobby displays it in channel order (lowest channel first)?

I have tried: "xmltv.exe tv_sort xmltv.xml --by-channel --output test1.xml"

This command line looks like it is sorting, but test1.xml is not sorted when I view it in xlobby. What command line should I be using?
smarty
 
Posts: 179
Joined: Thu Jul 27, 2006 12:04 am
Location: San Antonio, TX USA

Postby Dj Elmo on Wed Aug 09, 2006 9:16 am

Hi Smarty.

This isn't a direct response to your question. More like a question, to a question... Anyway, how do you show the info in Xlobby from the xml file.

What skin do you use?

Ta
Dj Elmo
 

Postby smarty on Wed Aug 09, 2006 2:21 pm

To use an EPG (Electronic Programing Guide) in Xlobby, see this link:
[/url]http://www.xlobby.com/forum/viewtopic.php?t=4732[url]

I happen to use the blue colored Xlobby2 Simplicity skin from the main dowload page, but setting up an EPG should not be skin dependant (you just have to make the screen yourself - see link).

To start, you need to get the EPG data. Download XMLTV at "sourceforge". Extract the zipped files, READ the documentation, set up your ZapToIt account (assuming your from N. America) and then run "xmltv.exe tv_grab_na_dd --configure", then run:

c:\xmltv\xmltv.exe tv_grab_na_dd --days 1 --old-chan-id --output unsortedxmltv.xml (1 day of data)

To sort the data by channel number , then run:

c:\xmltv\xmltv.exe tv_sort --by-channel --output xmltv.xml unsortedxmltv.xml (sort by channel)

Now, place the sorted xmtlv.xml file into a directory called c:\program files\xlobby\xmltv (assuming xlobby resides there already). The link above then guides you from there.

Hope this helps!![/url]
smarty
 
Posts: 179
Joined: Thu Jul 27, 2006 12:04 am
Location: San Antonio, TX USA