Skip to content

A feature-rich command-line audio/video downloader

[livestream] Video IDs should always be strings (#2234)

Yen Chi Hsuan7a46542f97c9
diff --git a/youtube_dl/extractor/livestream.py b/youtube_dl/extractor/livestream.py
index eada7c2992..0edc06c43a 100644
--- a/youtube_dl/extractor/livestream.py
+++ b/youtube_dl/extractor/livestream.py
@@ -150,7 +150,7 @@ class LivestreamIE(InfoExtractor):
}
def _extract_stream_info(self, stream_info):
- broadcast_id = stream_info['broadcast_id']
+ broadcast_id = compat_str(stream_info['broadcast_id'])
is_live = stream_info.get('is_live')
formats = []