1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44:32 +01:00

[YoutubeDL] Sanitize url for url and url_transparent extraction results

This commit is contained in:
Sergey M․ 2016-05-14 04:46:38 +06:00
parent 0730be9022
commit 134c6ea856
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -720,6 +720,7 @@ class YoutubeDL(object):
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)
if ((extract_flat == 'in_playlist' and 'playlist' in extra_info) or
extract_flat is True):