Hi,
yesterday, I have installed the grabber from Ben Bucksch which uses the data sources
of TV-Movie to create XMLTV files.
At the end, it worked, but there are some findings I'd want to share.
1. The listings sometimes contain real unicode characters, i.e. characters with a
number outside range(256). This causes freevo not to accept the listing. I then wrote
an own function __encode in epg_xmltv.py which looks roughly like this:
def __encode(str,code):
try:
return str.encode(code)
except UnicodeError:
result = ''
for ch in str:
try:
result = result + ch.encode(code)
except UnicodeError:
pass
return result
Then, I have replaced every occurrence of encode in epg_xmltv.py with my own function.
After that, it worked, ommitting the characters which seem not to be displayable by
freevo.
2. The listings contain a <color> tag, which freevo does not know. There is some
coding in xmltv.py, which cares for the tags and there is something like
try:
...
except NameError:
return 'Error...'
But the error I have got was an AttributeError. I have added another except
AttributeError to make this work.
3. The listings contain a Tag like <rating system=FSK>16</rating>. It seems that
freevo has a problem with that. I deleted the handling of this tag in epg_xmltv.py to
make this work. (freevo does not seem to display the rating anyway.
4. The listings contain the time in the following format:
200309042015 CET
But this is IMHO wrong, it should be
200309042015 CEST
Then, the coding with strptime.strptime in epg_xmltv.py works correctly. This is not
necessarily a problem of freevo, but I just wanted to mention. I have sent a mail to
Ben Bucksch about that. I will also check how the listings could be converted to the
CET/CEST format.
Regards,
Thorsten
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users