]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[rutv] Recognize live streams (#5584)
authorSergey M․ <dstftw@gmail.com>
Sun, 3 May 2015 03:56:03 +0000 (09:56 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 3 May 2015 03:56:03 +0000 (09:56 +0600)
youtube_dl/extractor/rutv.py

index ef766237bf318d40da067a6a820a725fbe0da286..169f7c0325d3cd92791f63dbea503e312bb31e71 100644 (file)
@@ -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,
         }