]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[brightcove:new] Add _extract_url
authorSergey M․ <dstftw@gmail.com>
Fri, 18 Dec 2015 16:05:32 +0000 (22:05 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 18 Dec 2015 16:05:32 +0000 (22:05 +0600)
youtube_dl/extractor/brightcove.py

index f5ebae1e68e456c158476a02d9df49feac97e02a..66b8d2dff7e1852dee76bc572acc39790ed48451 100644 (file)
@@ -389,6 +389,11 @@ class BrightcoveNewIE(InfoExtractor):
         }
     }]
 
+    @staticmethod
+    def _extract_url(webpage):
+        urls = BrightcoveNewIE._extract_urls(webpage)
+        return urls[0] if urls else None
+
     @staticmethod
     def _extract_urls(webpage):
         # Reference: