Explorar o código

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

Yen Chi Hsuan %!s(int64=9) %!d(string=hai) anos
pai
achega
7a46542f97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/livestream.py

+ 1 - 1
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 = []