projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4a8201
)
[livestream:event] Ensure video id is string (Closes #9721)
author
Sergey M․
<dstftw@gmail.com>
Tue, 7 Jun 2016 16:53:08 +0000
(23:53 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 7 Jun 2016 16:53:08 +0000
(23:53 +0700)
youtube_dl/extractor/livestream.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/livestream.py
b/youtube_dl/extractor/livestream.py
index 0edc06c43a93522a8049f7d9f5b8c701577b8707..bc7894bf13ed29963aa1dad7880cf8549be1ca77 100644
(file)
--- 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:
if not videos_info:
break
for v in videos_info:
+ v_id = compat_str(v['id'])
entries.append(self.url_result(
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'])
last_video = videos_info[-1]['id']
return self.playlist_result(entries, event_id, event_data['full_name'])