]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[livestream:event] Ensure video id is string (Closes #9721)
authorSergey M․ <dstftw@gmail.com>
Tue, 7 Jun 2016 16:53:08 +0000 (23:53 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 7 Jun 2016 16:53:08 +0000 (23:53 +0700)
youtube_dl/extractor/livestream.py

index 0edc06c43a93522a8049f7d9f5b8c701577b8707..bc7894bf13ed29963aa1dad7880cf8549be1ca77 100644 (file)
@@ -203,9 +203,10 @@ class LivestreamIE(InfoExtractor):
             if not videos_info:
                 break
             for v in videos_info:
+                v_id = compat_str(v['id'])
                 entries.append(self.url_result(
-                    'http://livestream.com/accounts/%s/events/%s/videos/%s' % (account_id, event_id, v['id']),
-                    'Livestream', v['id'], v['caption']))
+                    'http://livestream.com/accounts/%s/events/%s/videos/%s' % (account_id, event_id, v_id),
+                    'Livestream', v_id, v.get('caption')))
             last_video = videos_info[-1]['id']
         return self.playlist_result(entries, event_id, event_data['full_name'])