]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[kaltura] Fix embed info strip (refs #22658)
authorSergey M․ <dstftw@gmail.com>
Wed, 9 Oct 2019 17:11:41 +0000 (00:11 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 9 Oct 2019 17:11:41 +0000 (00:11 +0700)
youtube_dl/extractor/kaltura.py

index 0a733424c471e6a0d83b04b7773742353dda5c5a..1c486c038f2824023017231d96fb8510c61aff16 100644 (file)
@@ -151,7 +151,8 @@ class KalturaIE(InfoExtractor):
         if mobj:
             embed_info = mobj.groupdict()
             for k, v in embed_info.items():
-                embed_info[k] = v.strip()
+                if v:
+                    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(