projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
963aea5
)
[rutv] Recognize live streams (#5584)
author
Sergey M․
<dstftw@gmail.com>
Sun, 3 May 2015 03:56:03 +0000
(09:56 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 3 May 2015 03:56:03 +0000
(09:56 +0600)
youtube_dl/extractor/rutv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rutv.py
b/youtube_dl/extractor/rutv.py
index ef766237bf318d40da067a6a820a725fbe0da286..169f7c0325d3cd92791f63dbea503e312bb31e71 100644
(file)
--- 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,
}