logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 1907f06e7b0689840b75810e5ad2683581f83924
parent d4bb825b83a87813f54d007febd79d2f3dcee7b9
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu, 10 Oct 2019 00:11:41 +0700

[kaltura] Fix embed info strip (refs #22658)

Diffstat:

Myoutube_dl/extractor/kaltura.py3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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(