From: Sergey M․ Date: Wed, 9 Oct 2019 17:11:41 +0000 (+0700) Subject: [kaltura] Fix embed info strip (refs #22658) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1907f06e7b0689840b75810e5ad2683581f83924;p=youtube-dl [kaltura] Fix embed info strip (refs #22658) --- diff --git a/youtube_dl/extractor/kaltura.py b/youtube_dl/extractor/kaltura.py index 0a733424c..1c486c038 100644 --- a/youtube_dl/extractor/kaltura.py +++ b/youtube_dl/extractor/kaltura.py @@ -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(