aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-12-14 21:30:33 +0700
committerSergey M․ <dstftw@gmail.com>2016-12-14 21:30:33 +0700
commit069f9183025597d7ef5fe152b261e7de701ec260 (patch)
tree5904c895f97d2d9701973eb1eeda14b5f8dfef22 /youtube_dl
parent89c63cc5f88d4ec0fbeecbec43d5bc12b8144049 (diff)
[vlive] Use live titles for live streams
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/vlive.py25
1 files changed, 16 insertions, 9 deletions
diff --git a/youtube_dl/extractor/vlive.py b/youtube_dl/extractor/vlive.py
index a6e60c88a..540246c79 100644
--- 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)
- 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(
@@ -157,8 +161,11 @@ class VLiveIE(InfoExtractor):
'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