[goodgame] Get title like dict[key]

This commit is contained in:
Iaiao 2021-01-16 22:23:05 +02:00
parent 49e0682d1b
commit 1b733c1e2c
No known key found for this signature in database
GPG Key ID: 06921DA11602FE75

View File

@ -96,10 +96,6 @@ class GoodgameStreamIE(GoodgameBaseIE):
else: else:
thumbnail = None thumbnail = None
title = stream_info.get('title')
if title is None:
raise ExtractorError('Unable to extract title', video_id=channel_id)
formats = [] formats = []
for quality, suffix in self._QUALITIES.items(): for quality, suffix in self._QUALITIES.items():
formats.append({ formats.append({
@ -111,7 +107,7 @@ class GoodgameStreamIE(GoodgameBaseIE):
self._prefer_source(formats) self._prefer_source(formats)
return { return {
'id': channel_id, 'id': channel_id,
'title': title, 'title': stream_info['title'],
'view_count': int_or_none(stream_info.get('viewers')), 'view_count': int_or_none(stream_info.get('viewers')),
'thumbnail': thumbnail, 'thumbnail': thumbnail,
'is_live': True, 'is_live': True,