]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[brightcove] Allow single quotes in Brightcove URLs (fixes #5901)
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 7 Jun 2015 07:29:17 +0000 (15:29 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 7 Jun 2015 07:29:42 +0000 (15:29 +0800)
youtube_dl/extractor/brightcove.py
youtube_dl/extractor/generic.py

index 4f60d53660fa7777b9e1b6152967ce2e7e567ec9..c1d4320e1ce73b6d9c5a9313eee61a7e05f9daf9 100644 (file)
@@ -172,7 +172,7 @@ class BrightcoveIE(InfoExtractor):
         """Return a list of all Brightcove URLs from the webpage """
 
         url_m = re.search(
-            r'<meta\s+property="og:video"\s+content="(https?://(?:secure|c)\.brightcove.com/[^"]+)"',
+            r'<meta\s+property=[\'"]og:video[\'"]\s+content=[\'"](https?://(?:secure|c)\.brightcove.com/[^\'"]+)[\'"]',
             webpage)
         if url_m:
             url = unescapeHTML(url_m.group(1))
index 96ca398de7ce46599e532a5d1adb4a05ac2fb939..759691365b3258f4d6fce045e4877c5798313341 100644 (file)
@@ -789,6 +789,18 @@ class GenericIE(InfoExtractor):
                 # rtmpe downloads
                 'skip_download': True,
             }
+        },
+        # Brightcove URL in single quotes
+        {
+            'url': 'http://www.sportsnet.ca/baseball/mlb/sn-presents-russell-martin-world-citizen/',
+            'md5': '4ae374f1f8b91c889c4b9203c8c752af',
+            'info_dict': {
+                'id': '4255764656001',
+                'ext': 'mp4',
+                'title': 'SN Presents: Russell Martin, World Citizen',
+                'description': 'To understand why he was the Toronto Blue Jays’ top off-season priority is to appreciate his background and upbringing in Montreal, where he first developed his baseball skills. Written and narrated by Stephen Brunt.',
+                'uploader': 'Rogers Sportsnet',
+            },
         }
     ]