>> 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)
>>>
>>>
>>> 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
>

I finally found my freevo log files in /tmp/freevo here is the traceback I
get out of main-500.log:

Couldn't load the TV Guide, got an exception!

Traceback (most recent call last):
  File "/home/jonr/freevo/src/tv/epg_xmltv.py", line 217, in get_guide
    cached_guide = load_guide()
  File "/home/jonr/freevo/src/tv/epg_xmltv.py", line 362, in load_guide
    prog.stop = timestr2secs_utc(p['start'][0:8] + '235900' +
p['start'][14:18])
  File "/home/jonr/freevo/src/tv/epg_xmltv.py", line 414, in timestr2secs_utc
    secs = time.mktime(strptime.strptime(str, xmltv.date_format))
  File "/home/jonr/freevo/runtime/lib/python2.3/_strptime.py", line 427,
in strptime
    raise ValueError("unconverted data remains: %s" %
ValueError: unconverted data remains: AKS
Stopping webserver plugin.

Does this help anymore or is there anything else I can post that would
help fix this?

Thanks in advance,

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

Reply via email to