From ad0a7f648070875c23133493092f461113debe32 Mon Sep 17 00:00:00 2001 From: shaileshaanand Date: Sun, 15 Mar 2020 15:07:04 +0530 Subject: [PATCH] use get() for optional description field --- youtube_dl/extractor/skillshare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/skillshare.py b/youtube_dl/extractor/skillshare.py index 39d15c862..c787fe750 100644 --- a/youtube_dl/extractor/skillshare.py +++ b/youtube_dl/extractor/skillshare.py @@ -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'))