[radiofrance] fix bug parsing json
This commit is contained in:
parent
927ac8876d
commit
6fe9170a9e
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class TimelinePage(JsonPage):
|
|||
for item in self.doc:
|
||||
if item['debut'] < now and item['fin'] > now:
|
||||
emission = ''
|
||||
if 'diffusions' in item and item['diffusions']:
|
||||
if 'diffusions' in item and item['diffusions'] and 'title' in item['diffusions'][0]:
|
||||
emission = item['diffusions'][0]['title']
|
||||
|
||||
title = item['title_emission']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue