From 1b733c1e2c89d2c137353979744a31dccb4e4f3d Mon Sep 17 00:00:00 2001 From: Iaiao Date: Sat, 16 Jan 2021 22:23:05 +0200 Subject: [PATCH] [goodgame] Get title like dict[key] --- youtube_dl/extractor/goodgame.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/youtube_dl/extractor/goodgame.py b/youtube_dl/extractor/goodgame.py index e6951eeb8..9eba9fe4c 100644 --- a/youtube_dl/extractor/goodgame.py +++ b/youtube_dl/extractor/goodgame.py @@ -96,10 +96,6 @@ class GoodgameStreamIE(GoodgameBaseIE): else: thumbnail = None - title = stream_info.get('title') - if title is None: - raise ExtractorError('Unable to extract title', video_id=channel_id) - formats = [] for quality, suffix in self._QUALITIES.items(): formats.append({ @@ -111,7 +107,7 @@ class GoodgameStreamIE(GoodgameBaseIE): self._prefer_source(formats) return { 'id': channel_id, - 'title': title, + 'title': stream_info['title'], 'view_count': int_or_none(stream_info.get('viewers')), 'thumbnail': thumbnail, 'is_live': True,