Browse Source

[brightcove:new] Add _extract_url

Sergey M․ 9 years ago
parent
commit
7234d1d9c7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      youtube_dl/extractor/brightcove.py

+ 5 - 0
youtube_dl/extractor/brightcove.py

@@ -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: