From: Sergey M․ Date: Tue, 7 Jun 2016 16:53:08 +0000 (+0700) Subject: [livestream:event] Ensure video id is string (Closes #9721) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a26a9d62396641364690974de9c859cf26f9acf6;p=youtube-dl [livestream:event] Ensure video id is string (Closes #9721) --- 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'])