mirror of
https://github.com/l1ving/youtube-dl
synced 2020-11-18 19:53:54 -08:00
[ruutu] Accept embedded video URLs
Ruutu videos embedded to websites have URLs starting with static.nelonenmedia.fi. Add support for these.
This commit is contained in:
parent
2791e80b60
commit
98d13be5d5
@ -13,7 +13,7 @@ from ..utils import (
|
|||||||
|
|
||||||
|
|
||||||
class RuutuIE(InfoExtractor):
|
class RuutuIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?(?:ruutu|supla)\.fi/(?:video|supla)/(?P<id>\d+)'
|
_VALID_URL = r'https?://(?:www\.)?(?:ruutu|supla|static\.nelonenmedia)\.fi/(?:video/|supla/|player/misc/embed_player.html\?nid=)(?P<id>\d+)'
|
||||||
_TESTS = [
|
_TESTS = [
|
||||||
{
|
{
|
||||||
'url': 'http://www.ruutu.fi/video/2058907',
|
'url': 'http://www.ruutu.fi/video/2058907',
|
||||||
@ -72,7 +72,20 @@ class RuutuIE(InfoExtractor):
|
|||||||
'age_limit': 0,
|
'age_limit': 0,
|
||||||
},
|
},
|
||||||
'expected_warnings': ['HTTP Error 502: Bad Gateway'],
|
'expected_warnings': ['HTTP Error 502: Bad Gateway'],
|
||||||
}
|
},
|
||||||
|
# URL from embedded video
|
||||||
|
{
|
||||||
|
'url': 'https://static.nelonenmedia.fi/player/misc/embed_player.html?nid=3618790',
|
||||||
|
'md5': '71cca94775f29ef2fba12af92262647e',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '3618790',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'Kaukokärry hoitaa intialaisinsinöörin kauppareissut turvallisesti',
|
||||||
|
'thumbnail': r're:^https?://.*\.jpg$',
|
||||||
|
'duration': 77,
|
||||||
|
'age_limit': 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user