mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-12 09:47:55 +01:00
no .get('..',None)
This commit is contained in:
parent
10273d6e08
commit
75ab0ebcf5
@ -457,15 +457,15 @@ class BBCNewsIE(BBCCoUkIE):
|
|||||||
for ent in matches:
|
for ent in matches:
|
||||||
jent = self._parse_json(ent,list_id)
|
jent = self._parse_json(ent,list_id)
|
||||||
|
|
||||||
programme_id = jent.get('externalId',None)
|
programme_id = jent.get('externalId')
|
||||||
xml_url = jent.get('href', None)
|
xml_url = jent.get('href')
|
||||||
|
|
||||||
title = jent['caption']
|
title = jent['caption']
|
||||||
duration = parse_duration(jent.get('duration',None))
|
duration = parse_duration(jent.get('duration')
|
||||||
description = list_title + ' - ' + jent.get('caption','')
|
description = list_title + ' - ' + jent.get('caption','')
|
||||||
thumbnail = None
|
thumbnail = None
|
||||||
if jent.has_key('image'):
|
if jent.has_key('image'):
|
||||||
thumbnail=jent['image'].get('href',None)
|
thumbnail=jent['image'].get('href')
|
||||||
|
|
||||||
if programme_id:
|
if programme_id:
|
||||||
formats, subtitles = self._download_media_selector(programme_id)
|
formats, subtitles = self._download_media_selector(programme_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user