mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-19 01:40:09 +09:00
[goodgame] Get title like dict[key]
This commit is contained in:
parent
49e0682d1b
commit
1b733c1e2c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user