[appletrailers] Improve regex for fixing '<img>' tags (#7953)

pull/7969/head
Jaime Marquínez Ferrándiz 2015-12-23 14:48:40 +01:00
parent f10c27b8cb
commit 7fe37d8a05
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class AppleTrailersIE(InfoExtractor):
def fix_html(s): def fix_html(s):
s = re.sub(r'(?s)<script[^<]*?>.*?</script>', '', s) s = re.sub(r'(?s)<script[^<]*?>.*?</script>', '', s)
s = re.sub(r'<img ([^<]*?)>', r'<img \1/>', s) s = re.sub(r'<img ([^<]*?)/?>', r'<img \1/>', s)
# The ' in the onClick attributes are not escaped, it couldn't be parsed # The ' in the onClick attributes are not escaped, it couldn't be parsed
# like: http://trailers.apple.com/trailers/wb/gravity/ # like: http://trailers.apple.com/trailers/wb/gravity/