]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Update rtlnl.py
authorBart Kappenburg <bartkappenburg@gmail.com>
Mon, 5 Jan 2015 10:51:24 +0000 (11:51 +0100)
committerBart Kappenburg <bartkappenburg@gmail.com>
Mon, 5 Jan 2015 10:51:24 +0000 (11:51 +0100)
Added support for the non-www version of rtlxl.nl by making "www." optional.

youtube_dl/extractor/rtlnl.py

index d029b0ec525fc2e1186aba7e1c3dadf9bed981b0..a3ca79f2ccfd2e00c09a4f9b2a9503fa85669b65 100644 (file)
@@ -8,7 +8,7 @@ from ..utils import parse_duration
 
 class RtlXlIE(InfoExtractor):
     IE_NAME = 'rtlxl.nl'
-    _VALID_URL = r'https?://www\.rtlxl\.nl/#!/[^/]+/(?P<uuid>[^/?]+)'
+    _VALID_URL = r'https?://(www\.)?rtlxl\.nl/#!/[^/]+/(?P<uuid>[^/?]+)'
 
     _TEST = {
         'url': 'http://www.rtlxl.nl/#!/rtl-nieuws-132237/6e4203a6-0a5e-3596-8424-c599a59e0677',