2014-11-28, 23:14
Not sure if this will be resolved in the next release, but I am getting an error for XMLTV channels that are returning without any show data (channel exists in header, but there isnt any show data lower in the xml).
TypeError: attribute of type 'NoneType' is not callable on line 1956 of ChannelList.py
A viable solution is to replace this line:
with
This allows the Listing Unavailable placeholder to exist in the EPG.
TypeError: attribute of type 'NoneType' is not callable on line 1956 of ChannelList.py
A viable solution is to replace this line:
Code:
now = datetime.datetime.strptime(now, '%Y-%m-%d %H:%M:%S')
with
Code:
try:
now = datetime.datetime.strptime(now, '%Y-%m-%d %H:%M:%S')
except TypeError:
now = datetime.fromtimestamp(time.mktime(time.strptime(now, '%Y-%m-%d %H:%M:%S')))
This allows the Listing Unavailable placeholder to exist in the EPG.