mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-07 01:47:26 +00:00
[ruutu] Add support for static.nelonenmedia.fi (closes #25412)
This commit is contained in:
parent
56f1c5ad38
commit
469ff02f4e
@ -13,7 +13,14 @@ from ..utils import (
|
|||||||
|
|
||||||
|
|
||||||
class RuutuIE(InfoExtractor):
|
class RuutuIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?(?:ruutu|supla)\.fi/(?:video|supla|audio)/(?P<id>\d+)'
|
_VALID_URL = r'''(?x)
|
||||||
|
https?://
|
||||||
|
(?:
|
||||||
|
(?:www\.)?(?:ruutu|supla)\.fi/(?:video|supla|audio)/|
|
||||||
|
static\.nelonenmedia\.fi/player/misc/embed_player\.html\?.*?\bnid=
|
||||||
|
)
|
||||||
|
(?P<id>\d+)
|
||||||
|
'''
|
||||||
_TESTS = [
|
_TESTS = [
|
||||||
{
|
{
|
||||||
'url': 'http://www.ruutu.fi/video/2058907',
|
'url': 'http://www.ruutu.fi/video/2058907',
|
||||||
@ -80,6 +87,10 @@ class RuutuIE(InfoExtractor):
|
|||||||
'url': 'http://www.supla.fi/audio/2231370',
|
'url': 'http://www.supla.fi/audio/2231370',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'url': 'https://static.nelonenmedia.fi/player/misc/embed_player.html?nid=3618790',
|
||||||
|
'only_matching': True,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user