[sunporno] Keep old video regex just in case
authorSergey M․ <dstftw@gmail.com>
Sat, 14 Feb 2015 12:33:52 +0000 (18:33 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 14 Feb 2015 12:33:52 +0000 (18:33 +0600)
youtube_dl/extractor/sunporno.py

index f2a1d65503bcbbdd3e3e51ae7168eb2fe0db62b2..854d01beeb5cefd1f82d7991ee2c0ce75ad33dfa 100644 (file)
@@ -52,7 +52,7 @@ class SunPornoIE(InfoExtractor):
 
         formats = []
         quality = qualities(['mp4', 'flv'])
-        for video_url in re.findall(r'<video src="([^"]+)"', webpage):
+        for video_url in re.findall(r'<(?:source|video) src="([^"]+)"', webpage):
             video_ext = determine_ext(video_url)
             formats.append({
                 'url': video_url,