From: Philipp Hagemeister Date: Mon, 2 Feb 2015 22:47:14 +0000 (+0100) Subject: [brightcove] Fix up more generically invalid XML (Fixes #4849) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=c1147c05e172f8d8c2b2b8d752eda3f385f1bed1;p=youtube-dl.git [brightcove] Fix up more generically invalid XML (Fixes #4849) --- diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index 003152c4e..ea0969d4d 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/youtube_dl/extractor/brightcove.py @@ -108,7 +108,7 @@ class BrightcoveIE(InfoExtractor): """ # Fix up some stupid HTML, see https://github.com/rg3/youtube-dl/issues/1553 - object_str = re.sub(r'(', + object_str = re.sub(r'(', lambda m: m.group(1) + '/>', object_str) # Fix up some stupid XML, see https://github.com/rg3/youtube-dl/issues/1608 object_str = object_str.replace('<--', '