projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
89c63cc
)
[vlive] Use live titles for live streams
author
Sergey M․
<dstftw@gmail.com>
Wed, 14 Dec 2016 14:30:33 +0000
(21:30 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 14 Dec 2016 14:30:33 +0000
(21:30 +0700)
youtube_dl/extractor/vlive.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vlive.py
b/youtube_dl/extractor/vlive.py
index a6e60c88a5cc650fc0057d5ada2a53e29c04a825..540246c79d8900feaada9921eb600a2f6695828d 100644
(file)
--- a/
youtube_dl/extractor/vlive.py
+++ b/
youtube_dl/extractor/vlive.py
@@
-120,10
+120,14
@@
class VLiveIE(InfoExtractor):
fatal=False, live=True))
self._sort_formats(formats)
fatal=False, live=True))
self._sort_formats(formats)
- return dict(self._get_common_fields(webpage),
- id=video_id,
- formats=formats,
- is_live=True)
+ info = self._get_common_fields(webpage)
+ info.update({
+ 'title': self._live_title(info['title']),
+ 'id': video_id,
+ 'formats': formats,
+ 'is_live': True,
+ })
+ return info
def _replay(self, video_id, webpage, long_video_id, key):
playinfo = self._download_json(
def _replay(self, video_id, webpage, long_video_id, key):
playinfo = self._download_json(
@@
-157,8
+161,11
@@
class VLiveIE(InfoExtractor):
'ext': 'vtt',
'url': caption['source']}]
'ext': 'vtt',
'url': caption['source']}]
- return dict(self._get_common_fields(webpage),
- id=video_id,
- formats=formats,
- view_count=view_count,
- subtitles=subtitles)
+ info = self._get_common_fields(webpage)
+ info.update({
+ 'id': video_id,
+ 'formats': formats,
+ 'view_count': view_count,
+ 'subtitles': subtitles,
+ })
+ return info