]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[generic] Improve rtl.nl embeds detection (Closes #5950)
authorSergey M․ <dstftw@gmail.com>
Thu, 11 Jun 2015 13:04:12 +0000 (19:04 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 11 Jun 2015 13:04:12 +0000 (19:04 +0600)
youtube_dl/extractor/generic.py

index 759691365b3258f4d6fce045e4877c5798313341..75526384f07bd07f0c21c24455ac7017aef63ba0 100644 (file)
@@ -1073,7 +1073,7 @@ class GenericIE(InfoExtractor):
 
         # Look for embedded rtl.nl player
         matches = re.findall(
-            r'<iframe\s+(?:[a-zA-Z-]+="[^"]+"\s+)*?src="((?:https?:)?//(?:www\.)?rtl\.nl/system/videoplayer/[^"]+video_embed[^"]+)"',
+            r'<iframe[^>]+?src="((?:https?:)?//(?:www\.)?rtl\.nl/system/videoplayer/[^"]+(?:video_)?embed[^"]+)"',
             webpage)
         if matches:
             return _playlist_from_matches(matches, ie='RtlNl')