aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-03 09:56:03 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-03 09:56:03 +0600
commit8dab1e9072037daa9c6cab3da4a5dbd4daaae4c8 (patch)
tree93417251e6316f825e987beaae59589210faeb1c /youtube_dl/extractor
parent963aea5279691affca34d220452cecfd0e291a77 (diff)
[rutv] Recognize live streams (#5584)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/rutv.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/rutv.py b/youtube_dl/extractor/rutv.py
index ef766237b..169f7c032 100644
--- a/youtube_dl/extractor/rutv.py
+++ b/youtube_dl/extractor/rutv.py
@@ -181,12 +181,15 @@ class RUTVIE(InfoExtractor):
self._sort_formats(formats)
+ is_live = video_type == 'live'
+
return {
'id': video_id,
- 'title': title,
+ 'title': self._live_title(title) if is_live else title,
'description': description,
'thumbnail': thumbnail,
'view_count': view_count,
'duration': duration,
'formats': formats,
+ 'is_live': is_live,
}