Pārlūkot izejas kodu

[generic] Prevent <video> search from skipping over empty sources (#3546)

Philipp Hagemeister 11 gadi atpakaļ
vecāks
revīzija
aff216edf4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      youtube_dl/extractor/generic.py

+ 1 - 1
youtube_dl/extractor/generic.py

@@ -837,7 +837,7 @@ class GenericIE(InfoExtractor):
                     re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage)))
         if not found:
             # HTML5 video
-            found = re.findall(r'(?s)<video[^<]*(?:>.*?<source.*?)? src="([^"]+)"', webpage)
+            found = re.findall(r'(?s)<video[^<]*(?:>.*?<source[^>]+)? src="([^"]+)"', webpage)
         if not found:
             found = re.search(
                 r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")'