[showroomlive] Update formats, make sure id is a string
This commit is contained in:
parent
9277059b89
commit
ca5f8fbf02
@ -40,7 +40,7 @@ class ShowroomLiveIE(InfoExtractor):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'is_live': is_live,
|
'is_live': is_live,
|
||||||
'id': room.get('live_id'),
|
'id': str(room.get('live_id')),
|
||||||
'timestamp': room.get('current_live_started_at'),
|
'timestamp': room.get('current_live_started_at'),
|
||||||
'uploader': uploader,
|
'uploader': uploader,
|
||||||
'uploader_id': broadcaster_id,
|
'uploader_id': broadcaster_id,
|
||||||
@ -62,7 +62,8 @@ class ShowroomLiveIE(InfoExtractor):
|
|||||||
broadcaster_id,
|
broadcaster_id,
|
||||||
ext='mp4',
|
ext='mp4',
|
||||||
m3u8_id='hls',
|
m3u8_id='hls',
|
||||||
preference=stream.get('quality', 100) - 10
|
preference=stream.get('quality', 100),
|
||||||
|
live=True
|
||||||
))
|
))
|
||||||
elif stream.get('type') == 'rtmp':
|
elif stream.get('type') == 'rtmp':
|
||||||
url = stream.get('url') + '/' + stream.get('stream_name')
|
url = stream.get('url') + '/' + stream.get('stream_name')
|
||||||
@ -71,7 +72,8 @@ class ShowroomLiveIE(InfoExtractor):
|
|||||||
'format_id': 'rtmp',
|
'format_id': 'rtmp',
|
||||||
'protocol': 'rtmp',
|
'protocol': 'rtmp',
|
||||||
'ext': 'flv',
|
'ext': 'flv',
|
||||||
'preference': stream.get('quality', 100)
|
'preference': stream.get('quality', 100),
|
||||||
|
'format_note': stream.get('label')
|
||||||
})
|
})
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user