youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 0afef30b23dbf5e590f510924a1271f515512ac3
parent dcdfd1c711562380cea87a263de9e9e35ffbf20e
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Mon,  3 Mar 2014 12:06:28 +0100

Add display_id field

Diffstat:
Myoutube_dl/YoutubeDL.py | 3+++
Myoutube_dl/extractor/common.py | 4++++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py @@ -675,6 +675,9 @@ class YoutubeDL(object): info_dict['playlist'] = None info_dict['playlist_index'] = None + if 'display_id' not in info_dict: + info_dict['display_id'] = info_dict['id'] + # This extractors handle format selection themselves if info_dict['extractor'] in ['Youku']: if download: diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py @@ -88,6 +88,10 @@ class InfoExtractor(object): The following fields are optional: + display_id An alternative identifier for the video, not necessarily + unique, but available before title. Typically, id is + something like "4234987", title "Dancing naked mole rats", + and display_id "dancing-naked-mole-rats" thumbnails: A list of dictionaries (with the entries "resolution" and "url") for the varying thumbnails thumbnail: Full URL to a video thumbnail image.