From ca5f8fbf02831e4de70d496f630a8cdbe8efd78d Mon Sep 17 00:00:00 2001 From: Arjan Verwer Date: Fri, 16 Dec 2016 12:30:24 +0100 Subject: [PATCH] [showroomlive] Update formats, make sure id is a string --- youtube_dl/extractor/showroomlive.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/showroomlive.py b/youtube_dl/extractor/showroomlive.py index 2d2bd5e72..8bfae510b 100644 --- a/youtube_dl/extractor/showroomlive.py +++ b/youtube_dl/extractor/showroomlive.py @@ -40,7 +40,7 @@ class ShowroomLiveIE(InfoExtractor): return { 'is_live': is_live, - 'id': room.get('live_id'), + 'id': str(room.get('live_id')), 'timestamp': room.get('current_live_started_at'), 'uploader': uploader, 'uploader_id': broadcaster_id, @@ -62,7 +62,8 @@ class ShowroomLiveIE(InfoExtractor): broadcaster_id, ext='mp4', m3u8_id='hls', - preference=stream.get('quality', 100) - 10 + preference=stream.get('quality', 100), + live=True )) elif stream.get('type') == 'rtmp': url = stream.get('url') + '/' + stream.get('stream_name') @@ -71,7 +72,8 @@ class ShowroomLiveIE(InfoExtractor): 'format_id': 'rtmp', 'protocol': 'rtmp', 'ext': 'flv', - 'preference': stream.get('quality', 100) + 'preference': stream.get('quality', 100), + 'format_note': stream.get('label') }) self._sort_formats(formats)