[iprima] Add prima.iprima.cz url support
This commit is contained in:
parent
04cf1a191a
commit
47b0a9ed55
@ -12,11 +12,11 @@ from ..utils import (
|
|||||||
|
|
||||||
|
|
||||||
class IPrimaIE(InfoExtractor):
|
class IPrimaIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://play\.iprima\.cz/(?:.+/)?(?P<id>[^?#]+)'
|
_VALID_URL = r'https?://(play|prima)\.iprima\.cz/(?:.+/)?(?P<id>[^?#]+)'
|
||||||
_GEO_BYPASS = False
|
_GEO_BYPASS = False
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'http://play.iprima.cz/gondici-s-r-o-33',
|
'url': 'http://play.iprima.cz/gondici-s-r-o/gondici-s-r-o-34',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'p136534',
|
'id': 'p136534',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
@ -36,6 +36,7 @@ class IPrimaIE(InfoExtractor):
|
|||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
url = re.sub(r'prima.iprima.cz', 'play.iprima.cz', url)
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user