Browse Source

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

master
Philipp Hagemeister 9 years ago
parent
commit
c1147c05e1
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/brightcove.py

2
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('<--', '<!--')

Loading…
Cancel
Save