[YoutubeDL] Sanitize url for url and url_transparent extraction results
authorSergey M․ <dstftw@gmail.com>
Fri, 13 May 2016 22:46:38 +0000 (04:46 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 13 May 2016 22:46:38 +0000 (04:46 +0600)
youtube_dl/YoutubeDL.py

index 34eeb77c5d1cf5c0596de6582ea9751641c108b1..03a6a189093240c2c4fb96e6c1e383392e425eda 100755 (executable)
@@ -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):