projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c3c098d
)
[iprima] Relax _VALID_URL (closes #18453)
author
Sergey M․
<dstftw@gmail.com>
Sat, 8 Dec 2018 16:57:40 +0000
(23:57 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 8 Dec 2018 17:01:11 +0000
(
00:01
+0700)
youtube_dl/extractor/iprima.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/iprima.py
b/youtube_dl/extractor/iprima.py
index 1d58d6e850724f226d66f5822777010f8a8b8d38..11a6629d249e3bd849475b16a00b0efa4bda283d 100644
(file)
--- a/
youtube_dl/extractor/iprima.py
+++ b/
youtube_dl/extractor/iprima.py
@@
-12,7
+12,7
@@
from ..utils import (
class IPrimaIE(InfoExtractor):
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 = [{
_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,
# 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):
}]
def _real_extract(self, url):