View Full Version : can not generate an xml file
edgley
07-02-2004, 06:57 PM
Hi,
I have followed the instructions on the XML threads for muppets.
I must be a bigger one than I thought :nod:
My .bat file is:
c:
cd\xmltv
xmltv tv_grab_uk_rt --configure --auto-new-channels add --auto-missing-channels remove
xmltv tv_grab_uk_rt --listings c:\xmltv\TVDatapre.xml --days 9 --listings-overwrite true
xmltv tv_sort --by-channel --output c:\xmltv\epgdata.xml c:\xmltv\TVDatapre.xml
rem copy "c:\xmltv\epgdata.xml" "c:\Program Files\Frey Technologies\SageTV"
exit
I dont have Sage installed on this machine, but do have java.
When I run my .bat file it is not giving me an xml file.
I am presuming that it is my bat file that is up the duff.
thanks!
Simon
nielm
07-03-2004, 01:29 AM
Most of those command lines are only for the na grabber... Run the commands individually on the command line to see the error messages :)
Also look at the docs for tv_grab_uk_rt delivered in the xmltv zipfile.
You will want to run: tv_grab_uk_rt --configure
once to set up the channels you want to grab, then at each run: tv_grab_uk_rt --days 7 > listings.xml
xmltv tv_grep --not --clumpidx "" -or --clumpidx "0/" listings.xml > listings_noclumps.xml
xmltv tv_sort listings_noclumps.xml > epgdata.xml
Do this manually the first time, then put it in a batch file when you are happy it is working.
* see the sticky in this forum for the reason for the grep for noclumps.
* See also other posts in this forum for details of the --slow and --get-categories flags with tv_grab_uk_rt for more detailed listings info.
(PS: to get a command line on XP/2000, do start->run cmd.exe)
edgley
07-03-2004, 11:39 AM
Yeah!
Thank you. Now to import it into sage.
edgley
07-13-2004, 06:26 PM
Small hurray.
I have it it working, but
there are no details of the programme if I select one.
Does this mean that I made a type in that long command?
thanks
nielm
07-14-2004, 04:24 AM
no not really...
The 'fast' mode for the UK grabber only gets program titles and times.
If you want episode names/descriptions/actors/categories, then you have to use the --slow command line option...
This is REALLY slow, because for each program you have to get another web page with the details of that program (several minutes per channel per day)
There are ways to limit the details: the command line options:
--slow --limit-details 17:00-02:00 --get-categories
will only get details for programs in the specified timeslot.
Setting up 2 config files (with the --config-file option) will allow you to have 2 sets of channels, one for which you only want summary info (which you run without --slow), and the other to run with --slow to get more detailed info.
This will mean that you get 2 XML files that you need to merge with the tv_sort command:
tv_sort file1.xml file2.xml > epgdata.xml
WARNING: if you are using --slow mode, check the sticky post in this forum regarding 'clumps' -- where 2 programs share a timeslot.
I have made loads of other posts in this forum about how to make tv_grab_uk_rt faster... a search should fine them :)
vBulletin® v3.7.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.