> And again I forget to put the versions in my post....sheesh! > > XMLTV module version 0.5.29 > This is tv_sort version 1.29, 2004/01/06 20:45:25 > >> When I run the grablistings script, shown here: >> >> #!/bin/sh >> >> todayis=`date +%Y%m%d` >> /usr/bin/tv_grab_na --days 2 | tv_sort > >> $HOME/freevo/xmltv/listings_$todayis.xml >> rm -f /tmp/TV.xml >> ln -s $HOME/freevo/xmltv/listings_$todayis.xml /tmp/TV.xml >> >> It goes out and collects all of my channel data, most of the listings >> look >> like this: >> >> <programme start="20040224220000 AKST" stop="20040224223000 AKST" >> channel="C99oln.zap2it.com"> >> <title>Americana Outdoors</title> >> <sub-title>Alaska Halibut</sub-title> >> <desc>Halibut fishing.</desc> >> <category>Sports</category> >> </programme> >> >> >> But some of the listings look like this: >> <programme start="20040224220000 AKST" channel="C808smooth.zap2it.com"> >> <title>Smooth R & B</title> >> <desc>R&B, Neo-Classic Soul and slow jams with no rap >> music.</desc> >> <category>Musical</category> >> </programme> >> >> It has no stop="" after the start and this causes my guide to become >> corrupt. I tried to run "tv_sort /tmp/TV.xml" but it doesn't clean the >> file up, it just leaves it like it is. >> >> I had found in a previous post that the answer was to fix epg_xmltv.py. >> When I looked at my epg_xmltv.py it already had the fix in place: >> >> try: >> prog.start = timestr2secs_utc(p['start']) >> try: >> prog.stop = timestr2secs_utc(p['stop']) >> except: >> # Fudging end time >> prog.stop = timestr2secs_utc(p['start'][0:8] + '235900' >> + >> p['start'][14:18]) >> except EPG_TIME_EXC: >> continue >> guide.AddProgram(prog) >> >> >> I can't write a script to save my life so I have no way of fixing this >> aside from going into /tmp/TV.xml and deleting the programs that have no >> stop="" in them. This file is large for even just 2 days and would take >> forever to do this each time I updated my guide. Can anyone tell me how >> I >> could fix this? >> >> Thanks for any help, >> >> Jon >>
I was looking throught the tv_sort script and was wondering if maybe I was missing some perl module(s). These are the modules I have installed for Freevo: Class-MethodMaker-2.00 DateManip-5.42a HTML-Parser-3.35 Lingua-EN-Numbers-Ordinate-0.01 Lingua-Preferred-0.2.4 podlators-1.27 Term-ProgressBar-2.05 Unicode-String-2.07 XML-Parser-2.34 XML-Writer-0.4.1 Am I missing some modules that tv_sort needs to add the stop times to my output file? Sorry for posting to my own posts but this is the last little piece to get working before I can move on to getting the recording to work and I am completely stumped. Jon ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
