소스 검색

[brightcove] Improve error message detection (#4256)

Jaime Marquínez Ferrándiz 11 년 전
부모
커밋
4d46c1c68c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      youtube_dl/extractor/brightcove.py

+ 1 - 1
youtube_dl/extractor/brightcove.py

@@ -221,7 +221,7 @@ class BrightcoveIE(InfoExtractor):
         webpage = self._download_webpage(req, video_id)
 
         error_msg = self._html_search_regex(
-            r"<h1>We're sorry.</h1>\s*<p>(.*?)</p>", webpage,
+            r"<h1>We're sorry.</h1>([\s\n]*<p>.*?</p>)+", webpage,
             'error message', default=None)
         if error_msg is not None:
             raise ExtractorError(