From 6f22b4c01c348c6abbcdf1ef3fdeed90acb6d248 Mon Sep 17 00:00:00 2001 From: Argn0 Date: Fri, 23 Jun 2017 12:06:21 +0200 Subject: [PATCH] Update YoutubeDL.py --- youtube_dl/YoutubeDL.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index f13844e64..70f60365c 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -812,6 +812,7 @@ class YoutubeDL(object): Returns the resolved ie_result. """ 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)