summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-04-12 23:11:47 +0600
committerSergey M․ <dstftw@gmail.com>2015-04-12 23:11:47 +0600
commit830d53bfae7a665b55656dd50c9f35f0d0b0161d (patch)
treeeec5345bd4d19a6250454afaf18f31e623d40e9a
parentc36a95954947fd5d9fb8df2539115a7f9a6b3a59 (diff)
downloadyoutube-dl-830d53bfae7a665b55656dd50c9f35f0d0b0161d.tar.gz
youtube-dl-830d53bfae7a665b55656dd50c9f35f0d0b0161d.tar.xz
youtube-dl-830d53bfae7a665b55656dd50c9f35f0d0b0161d.zip
[utils] Add `video_title` for `url_result`
-rw-r--r--youtube_dl/extractor/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 530c449c1..8ed97f8dd 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -492,7 +492,7 @@ class InfoExtractor(object):
 
     # Methods for following #608
     @staticmethod
-    def url_result(url, ie=None, video_id=None):
+    def url_result(url, ie=None, video_id=None, video_title=None):
         """Returns a url that points to a page that should be processed"""
         # TODO: ie should be the class used for getting the info
         video_info = {'_type': 'url',
@@ -500,6 +500,8 @@ class InfoExtractor(object):
                       'ie_key': ie}
         if video_id is not None:
             video_info['id'] = video_id
+        if video_title is not None:
+            video_info['title'] = video_title
         return video_info
 
     @staticmethod