[kaltura] sanitize embed URLs
authorRemita Amine <remitamine@gmail.com>
Tue, 9 Apr 2019 10:20:26 +0000 (11:20 +0100)
committerRemita Amine <remitamine@gmail.com>
Tue, 9 Apr 2019 10:20:26 +0000 (11:20 +0100)
youtube_dl/extractor/kaltura.py

index fdf7f5bbc4aa314ac8d703376ec3a82014d8a6bf..79162f665ff27f40eea31a4c09fcff09018eedaf 100644 (file)
@@ -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(