aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-05-14 04:46:38 +0600
committerSergey M․ <dstftw@gmail.com>2016-05-14 04:46:38 +0600
commit134c6ea856be472f253bffbe99b88546fe417806 (patch)
tree8b992430eb196b11441ccc7d1ddbd7ba2b2604d4 /youtube_dl/YoutubeDL.py
parent0730be9022b415738e917c4cf72c2347ff0008e0 (diff)
[YoutubeDL] Sanitize url for url and url_transparent extraction results
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 34eeb77c5..03a6a1890 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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):