1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-02-16 17:07:54 +01:00

use get() for optional description field

This commit is contained in:
shaileshaanand 2020-03-15 15:07:04 +05:30
parent 2df32f9697
commit ad0a7f6480

View File

@ -32,4 +32,4 @@ class SkillshareClassIE(InfoExtractor):
'url': 'https://players.brightcove.net/{}/default_default/index.html?videoId={}'.format(account_id, video_hashed_id),
}
entries.append(entry)
return self.playlist_result(entries, class_id, class_json_data['pageData']['headerData']['title'], class_json_data["pageData"]['sectionData']['description'])
return self.playlist_result(entries, class_id, class_json_data['pageData']['headerData']['title'], class_json_data.get("pageData").get('sectionData').get('description'))