summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-12-08 23:57:40 +0700
committerSergey M․ <dstftw@gmail.com>2018-12-09 00:01:11 +0700
commit9235b5091cedcc21c8dc32d4b292340edeee4ed0 (patch)
tree17eb6c2dec38dd3293be2ebbcdecd9d659188b32
parentc3c098dcf2826ab4d668a92c9137cca2c0c42a4f (diff)
downloadyoutube-dl-9235b5091cedcc21c8dc32d4b292340edeee4ed0.tar.gz
youtube-dl-9235b5091cedcc21c8dc32d4b292340edeee4ed0.tar.xz
youtube-dl-9235b5091cedcc21c8dc32d4b292340edeee4ed0.zip
[iprima] Relax _VALID_URL (closes #18453)
-rw-r--r--youtube_dl/extractor/iprima.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py
index 1d58d6e85..11a6629d2 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)\.iprima\.cz/(?:.+/)?(?P<id>[^?#]+)'
+    _VALID_URL = r'https?://(?:play|prima|www)\.iprima\.cz/(?:[^/]+/)*(?P<id>[^/?#&]+)'
     _GEO_BYPASS = False
 
     _TESTS = [{
@@ -41,6 +41,9 @@ class IPrimaIE(InfoExtractor):
         # iframe prima.iprima.cz
         'url': 'https://prima.iprima.cz/porady/jak-se-stavi-sen/rodina-rathousova-praha',
         'only_matching': True,
+    }, {
+        'url': 'http://www.iprima.cz/filmy/desne-rande',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):