[brightcove] Improve brightcove experience regex (Closes #5421)
[youtube-dl] / youtube_dl / extractor / brightcove.py
index 0733bece7c45880ab5c20b916d5bd8c9700da548..b37857b2e543376c16349ad43f0fea0b358ad3af 100644 (file)
@@ -183,7 +183,7 @@ class BrightcoveIE(InfoExtractor):
             (?:
                 [^>]+?class=[\'"][^>]*?BrightcoveExperience.*?[\'"] |
                 [^>]*?>\s*<param\s+name="movie"\s+value="https?://[^/]*brightcove\.com/
-            ).+?</object>''',
+            ).+?>\s*</object>''',
             webpage)
         return [cls._build_brighcove_url(m) for m in matches]