about summary refs log tree commit diff
path: root/youtube_dl/extractor/appletrailers.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-12-23 14:48:40 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-12-23 14:48:40 +0100
commit7fe37d8a05609229332d5a156cb9b7cf4bba2790 (patch)
tree3c5f62ed94981331fa8d605f7e982c72172becc0 /youtube_dl/extractor/appletrailers.py
parentf10c27b8cb35c72b5f9633956f71f96da72ada31 (diff)
downloadyoutube-dl-7fe37d8a05609229332d5a156cb9b7cf4bba2790.tar.gz
youtube-dl-7fe37d8a05609229332d5a156cb9b7cf4bba2790.tar.xz
youtube-dl-7fe37d8a05609229332d5a156cb9b7cf4bba2790.zip
[appletrailers] Improve regex for fixing '<img>' tags (#7953)
Diffstat (limited to 'youtube_dl/extractor/appletrailers.py')
-rw-r--r--youtube_dl/extractor/appletrailers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/appletrailers.py b/youtube_dl/extractor/appletrailers.py
index ca9a70924..82beed2ce 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/