Bernard Mentink wrote:
Hi All,
I am new to freevo and am having some trouble getting the TV side working.
1. First problem is the TV-guide, the TV.xml data that I have obtained
for my locale doesn't want to get parsed
correctly by freevo (it does in Mythtv ok). Looking at the error
message below, you can see that the time format
does not match what is expected, a "seconds" field is required by
freevo it seems which is not present in the data.
(only yr/mnth/day/hr/min) How do I fix this? Do I have to fix the
python script, or massage the data some how ....
2. Second problem is that my channels do not get displayed. In my
TV.xml, see below, the channel field is
decribed:
*<channel id="01">
<display-name>TV1</display-name>
<icon src="http://www.gbpvr.com/logo/TV1.jpeg" />
</channel>*
However acording to the documentation, freevo is requiring a:
*<programme channel="01"
</programme>*
syntax. Will both syntax's be parsed? Is the id "01" ok?
I am using tvtime for TV viewing, and tvtime works ok. My TV portion
of local_conf.py looks like:
*plugin.remove('tv.mplayer')
plugin.activate('tv.tvtime')
TV_CHANNELS = [
( '01', 'TV1', '61.75Mhz' ),
( '02', 'TV2', '202.75Mhz' ),
( '03', 'TV3', '188.75Mhz' )
]*
and the portion of stationlist.xml that is derived from above is looks
like:
*<list frequencies='freevo' norm='PAL'>
<station name='TV1' band='US Cable' active='1' position='0'
xmltvid='01' channel='61.75Mhz'/>
<station name='TV2' band='US Cable' active='1' position='1'
xmltvid='02' channel='202.75Mhz'/>
<station name='TV3' band='US Cable' active='1' position='2'
xmltvid='03' channel='188.75Mhz'/>
</list>*
I don't know how to change the US Cable field above ? My ountry is
specified in freevo.conf correctly.
Can anyone help with any/all of these issues?
Many Thanks,
Bernard
*
----------------------------------------- error
------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/freevo/tv/epg_xmltv.py", line
283, in
load_guide
prog.start = timestr2secs_utc(p['start'])
File
"/usr/lib/python2.4/site-packages/freevo/tv/epg_xmltv.py", line
363, in timestr2secs_utc
secs = time.mktime(strptime.strptime(timestr,
xmltv.date_format))
File "/usr/lib/python2.4/_strptime.py", line 293, in
strptime
raise ValueError("time data did not match format:
data=%s
fmt=%s" %
ValueError: time data did not match format:
data=200512202250 fmt=%Y%m%d%H%M%S %Z
Error in tv guide, skipping
------------------------------------ error
----------------------------------------------------------
----------------------------------- TV.xml
----------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv generator-info-name="xmlTVNZ v2.0">
<channel id="01">
<display-name>TV1</display-name>
<icon src="http://www.gbpvr.com/logo/TV1.jpeg" />
</channel>
<channel id="02">
<display-name>TV2</display-name>
<icon src="http://www.gbpvr.com/logo/TV2.jpeg" />
</channel>
<channel id="03">
<display-name>TV3</display-name>
<icon src="http://www.gbpvr.com/logo/TV3.jpeg" />
</channel>
<programme start="200512150000" stop="200512150600" channel="01">
<title lang="en">BBC World</title>
<desc lang="en">
-----------------------------------------------------------------------------------------------------------------*
------------------------------------------------------- This SF.net
email is sponsored by: Splunk Inc. Do you grep through log files for
problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________ Freevo-users mailing
list [email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users
For problem number one it seems that you'll have to do as you say,
either fix the python script or massage the data to insert the seconds.
Poblem number two I had come accross myself quite a while ago. The way
the tvtime plugin looks up channels is different to the mplayer plugin,
instead of using freq.py iit uses an internal list of channels. I set
about changing it to use freq.py and got it working in a very basic form
but this was when my pvr-150 arrived so I never finished it off. I've
attached a copy that was for 1.5.2 i think. I keep meaning to set up an
analogue test machine and do a patch against 1.5.4 but finding the time
is the problem. The last thing to note was that I didn't (and still
don't) know python and only have minor programming experience so there's
probably a much better way of doing this. Anyway if you have some
programming skill maybe this will help you and maybe you could fix it up
and submit a real patch.
John
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users