[nowtv] Expand _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Sat, 1 Aug 2015 22:26:59 +0000 (04:26 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 1 Aug 2015 22:26:59 +0000 (04:26 +0600)
youtube_dl/extractor/nowtv.py

index de6bc6d96b1fbbc32546fb01bf9024098c989bbf..11ce371688094d121a9596cde6678ba99eb479e1 100644 (file)
@@ -16,7 +16,7 @@ from ..utils import (
 
 
 class NowTVIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?nowtv\.de/(?:rtl|rtl2|rtlnitro|superrtl|ntv|vox)/(?P<id>.+?)/player'
+    _VALID_URL = r'https?://(?:www\.)?nowtv\.de/(?:rtl|rtl2|rtlnitro|superrtl|ntv|vox)/(?P<id>.+?)/(?:player|preview)'
 
     _TESTS = [{
         # rtl
@@ -126,6 +126,9 @@ class NowTVIE(InfoExtractor):
             # rtmp download
             'skip_download': True,
         },
+    }, {
+        'url': 'http://www.nowtv.de/rtl/bauer-sucht-frau/die-neuen-bauern-und-eine-hochzeit/preview',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):