projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0730be9
)
[YoutubeDL] Sanitize url for url and url_transparent extraction results
author
Sergey M․
<dstftw@gmail.com>
Fri, 13 May 2016 22:46:38 +0000
(
04:46
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 13 May 2016 22:46:38 +0000
(
04:46
+0600)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 34eeb77c5d1cf5c0596de6582ea9751641c108b1..03a6a189093240c2c4fb96e6c1e383392e425eda 100755
(executable)
--- 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):