Pārlūkot izejas kodu

[brightcove:new] Add _extract_url

Sergey M․ 10 gadi atpakaļ
vecāks
revīzija
7234d1d9c7
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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: