aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-03 12:06:28 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-03 12:06:28 +0100
commit0afef30b23dbf5e590f510924a1271f515512ac3 (patch)
treee17f83db816ec100117e471b33e1bbb23f297c35 /youtube_dl/YoutubeDL.py
parentdcdfd1c711562380cea87a263de9e9e35ffbf20e (diff)
Add display_id field
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rw-r--r--youtube_dl/YoutubeDL.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 42cbcf699..47205efae 100644
--- 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: