summary refs log tree commit diff
diff options
context:
space:
mode:
authoryonaikerlol <lawlietrs7@gmail.com>2018-12-16 17:10:36 -0400
committerSergey M <dstftw@gmail.com>2018-12-17 04:10:36 +0700
commit90046d77616f8f24e3716c64443118a9dcbec996 (patch)
tree97d36256f4aaf70f0740c487bbb0e76a1c23548a
parentc8b37510868b20b0829583557899d70db2ea6243 (diff)
downloadyoutube-dl-90046d77616f8f24e3716c64443118a9dcbec996.tar.gz
youtube-dl-90046d77616f8f24e3716c64443118a9dcbec996.tar.xz
youtube-dl-90046d77616f8f24e3716c64443118a9dcbec996.zip
[iprima] Relax _VALID_URL (closes #18515)
-rw-r--r--youtube_dl/extractor/iprima.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py
index 11a6629d2..11bbeb592 100644
--- a/youtube_dl/extractor/iprima.py
+++ b/youtube_dl/extractor/iprima.py
@@ -12,7 +12,7 @@ from ..utils import (
 
 
 class IPrimaIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:play|prima|www)\.iprima\.cz/(?:[^/]+/)*(?P<id>[^/?#&]+)'
+    _VALID_URL = r'https?://(?:[^/]+)\.iprima\.cz/(?:[^/]+/)*(?P<id>[^/?#&]+)'
     _GEO_BYPASS = False
 
     _TESTS = [{
@@ -44,6 +44,21 @@ class IPrimaIE(InfoExtractor):
     }, {
         'url': 'http://www.iprima.cz/filmy/desne-rande',
         'only_matching': True,
+    }, {
+        'url': 'https://zoom.iprima.cz/10-nejvetsich-tajemstvi-zahad/posvatna-mista-a-stavby',
+        'only_matching': True,
+    }, {
+        'url': 'https://krimi.iprima.cz/mraz-0/sebevrazdy',
+        'only_matching': True,
+    }, {
+        'url': 'https://cool.iprima.cz/derava-silnice-nevadi',
+        'only_matching': True,
+    }, {
+        'url': 'https://love.iprima.cz/laska-az-za-hrob/slib-dany-bratrovi',
+        'only_matching': True,
+    }, {
+        'url': 'https://autosalon.iprima.cz/motorsport/7-epizoda-1',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):