@@ -156,7 +156,10 @@ def response(resp):
156156 })
157157
158158 elif mainline_type == 'news':
159− pub_date = datetime.fromtimestamp(item['date'], None)
159+
160+ pub_date = item['date']
161+ if pub_date is not None:
162+ pub_date = datetime.fromtimestamp(pub_date)
160163 news_media = item.get('media', [])
161164 img_src = None
162165 if news_media:
@@ -192,8 +195,12 @@ def response(resp):
192195 if c:
193196 content_parts.append("%s: %s " % (gettext("Channel"), c))
194197 content = ' // '.join(content_parts)
195− length = timedelta(seconds=item['duration'])
196− pub_date = datetime.fromtimestamp(item['date'])
198+ length = item['duration']
199+ if length is not None:
200+ length = timedelta(milliseconds=length)
201+ pub_date = item['date']
202+ if pub_date is not None:
203+ pub_date = datetime.fromtimestamp(pub_date)
197204 thumbnail = item['thumbnail']
198205 # from some locations (DE and others?) the s2 link do
199206 # response a 'Please wait ..' but does not deliver the thumbnail