about summary refs log tree commit diff
path: root/youtube_dl/extractor/livestream.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-06-07 23:53:08 +0700
committerSergey M․ <dstftw@gmail.com>2016-06-07 23:53:08 +0700
commita26a9d62396641364690974de9c859cf26f9acf6 (patch)
tree54a5d5992ab647e7a4cf52506be495833dff6514 /youtube_dl/extractor/livestream.py
parenta4a8201c02d06bff384ecb66a257dbec0652ff52 (diff)
downloadyoutube-dl-a26a9d62396641364690974de9c859cf26f9acf6.tar.gz
youtube-dl-a26a9d62396641364690974de9c859cf26f9acf6.tar.xz
youtube-dl-a26a9d62396641364690974de9c859cf26f9acf6.zip
[livestream:event] Ensure video id is string (Closes #9721)
Diffstat (limited to 'youtube_dl/extractor/livestream.py')
-rw-r--r--youtube_dl/extractor/livestream.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/livestream.py b/youtube_dl/extractor/livestream.py
index 0edc06c43..bc7894bf1 100644
--- a/youtube_dl/extractor/livestream.py
+++ b/youtube_dl/extractor/livestream.py
@@ -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'])