Author: dmeyer
Date: Thu Mar 23 16:23:25 2006
New Revision: 8127
Modified:
trunk/tvserver/src/epg.py
Log:
epg data may be None which is != an empty string
Modified: trunk/tvserver/src/epg.py
==============================================================================
--- trunk/tvserver/src/epg.py (original)
+++ trunk/tvserver/src/epg.py Thu Mar 23 16:23:25 2006
@@ -137,7 +137,9 @@
# check if attributes changed
for attr in ('description', 'episode', 'subtitle'):
- if getattr(rec, attr) != getattr(epginfo, attr):
+ newattr = getattr(epginfo, attr)
+ oldattr = getattr(rec, attr)
+ if (newattr or oldattr) and newattr != oldattr:
log.info('%s changed for %s', attr, rec.name)
setattr(rec, attr, getattr(epginfo, attr))
return True
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog