[livestream] Video IDs should always be strings (#2234)
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 22 May 2016 17:38:00 +0000 (01:38 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 22 May 2016 17:40:11 +0000 (01:40 +0800)
youtube_dl/extractor/livestream.py

index eada7c299238953baa9fd3d8219b2754aa7f9356..0edc06c43a93522a8049f7d9f5b8c701577b8707 100644 (file)
@@ -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 = []