youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit c1147c05e172f8d8c2b2b8d752eda3f385f1bed1
parent 55898ad2cf4a5cf7628cf921fb5785ed0c7dceff
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Mon,  2 Feb 2015 23:47:14 +0100

[brightcove] Fix up more generically invalid XML (Fixes #4849)

Diffstat:
Myoutube_dl/extractor/brightcove.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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'(<param name="[^"]+" value="[^"]+")>', + object_str = re.sub(r'(<param(?:\s+[a-zA-Z0-9_]+="[^"]*")*)>', 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('<--', '<!--')