소스 검색

[brightcove:new] Add _extract_url

Sergey M․ 9 년 전
부모
커밋
7234d1d9c7
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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
     @staticmethod
     def _extract_urls(webpage):
     def _extract_urls(webpage):
         # Reference:
         # Reference: