diff options
| author | Sergey M․ <dstftw@gmail.com> | 2019-10-10 00:11:41 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2019-10-10 00:11:41 +0700 | 
| commit | 1907f06e7b0689840b75810e5ad2683581f83924 (patch) | |
| tree | 0884708d0f4ce9613a2b1e73fec0f86f3ca15d99 | |
| parent | d4bb825b83a87813f54d007febd79d2f3dcee7b9 (diff) | |
[kaltura] Fix embed info strip (refs #22658)
| -rw-r--r-- | youtube_dl/extractor/kaltura.py | 3 | 
1 files changed, 2 insertions, 1 deletions
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(  | 
