Update YoutubeDL.py

This commit is contained in:
Argn0 2017-06-23 12:06:21 +02:00 committed by GitHub
parent f45423cba5
commit 6f22b4c01c

View File

@ -812,6 +812,7 @@ class YoutubeDL(object):
Returns the resolved ie_result.
"""
result_type = ie_result.get('_type', 'video')
if result_type in ('url', 'url_transparent'):
ie_result['url'] = sanitize_url(ie_result['url'])
extract_flat = self.params.get('extract_flat', False)