Hi,
I have found a problem with saving recording data to the tvschedule.fxd
file. Sometimes the name or description of a program contains the '&'
character. In xml this should be replaced by '&'. Because this is
not done the tvserver sometimes give an error reading the tvserver.fxd
file.
Looking in the tvserver.recording.py the following code doesn't convert
the '&' at all:
node.add_child(var, getattr(self, var))
But the following line converts the '&' just fine:
node.add_child(var, var=getattr(self, var))
Inside the fxdparser.py these two situations are different processed. In
the first situation the data is processed as 'content', while in the
second situation it is processed as separate 'key' and 'data'.
Why this different processing?
Should the code in tvserver.recording.py be changed to:?
for var in ('name', 'channel', 'priority', 'status',
'subtitle', 'fxdname', 'episode', 'description'):
if getattr(self, var):
node.add_child(var, var=getattr(self, var))
Regards,
Jose
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel