logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 5ca3459828cc0d752f02dab3e9c02cca85185cbb
parent 9c017253e83ac3dfd363566ccbb9fc63f4e2ac07
Author: Remita Amine <remitamine@gmail.com>
Date:   Tue,  9 Apr 2019 11:20:26 +0100

[kaltura] sanitize embed URLs

Diffstat:

Myoutube_dl/extractor/kaltura.py2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/kaltura.py b/youtube_dl/extractor/kaltura.py @@ -145,6 +145,8 @@ class KalturaIE(InfoExtractor): ) if mobj: embed_info = mobj.groupdict() + for k, v in embed_info.items(): + embed_info[k] = v.strip() url = 'kaltura:%(partner_id)s:%(id)s' % embed_info escaped_pid = re.escape(embed_info['partner_id']) service_url = re.search(