Skip to content

Commit

Permalink
[iprima] Relax _VALID_URL (closes #18515)
Browse files Browse the repository at this point in the history
  • Loading branch information
yonaikerlol authored and lkho committed Dec 24, 2018
1 parent bb77be6 commit aeb058c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion youtube_dl/extractor/iprima.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


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 = [{
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit aeb058c

Please sign in to comment.