[youtube] Add support for search result URLs (Fixes #2495)

This commit is contained in:
Philipp Hagemeister 2014-03-04 03:32:28 +01:00
parent 86fb4347f7
commit c9ae7b9565
5 changed files with 64 additions and 11 deletions

View file

@ -675,7 +675,7 @@ class YoutubeDL(object):
info_dict['playlist'] = None
info_dict['playlist_index'] = None
if 'display_id' not in info_dict:
if 'display_id' not in info_dict and 'id' in info_dict:
info_dict['display_id'] = info_dict['id']
# This extractors handle format selection themselves