mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[YoutubeDL] Sanitize url for url and url_transparent extraction results
This commit is contained in:
parent
0730be9022
commit
134c6ea856
|
@ -720,6 +720,7 @@ class YoutubeDL(object):
|
||||||
result_type = ie_result.get('_type', 'video')
|
result_type = ie_result.get('_type', 'video')
|
||||||
|
|
||||||
if result_type in ('url', 'url_transparent'):
|
if result_type in ('url', 'url_transparent'):
|
||||||
|
ie_result['url'] = sanitize_url(ie_result['url'])
|
||||||
extract_flat = self.params.get('extract_flat', False)
|
extract_flat = self.params.get('extract_flat', False)
|
||||||
if ((extract_flat == 'in_playlist' and 'playlist' in extra_info) or
|
if ((extract_flat == 'in_playlist' and 'playlist' in extra_info) or
|
||||||
extract_flat is True):
|
extract_flat is True):
|
||||||
|
|
Loading…
Reference in a new issue