A feature-rich command-line audio/video downloader
[appletrailers] Improve regex for fixing '<img>' tags (#7953)
Jaime Marquínez Ferrándiz7fe37d8a0560
diff --git a/youtube_dl/extractor/appletrailers.py b/youtube_dl/extractor/appletrailers.pyindex ca9a709248..82beed2ce4 100644--- a/youtube_dl/extractor/appletrailers.py+++ b/youtube_dl/extractor/appletrailers.py@@ -80,7 +80,7 @@ class AppleTrailersIE(InfoExtractor):def fix_html(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# like: http://trailers.apple.com/trailers/wb/gravity/