]>
jfr.im git - yt-dlp.git/blob - youtube_dl/extractor/nintendo.py
4b4e66b059527c337c2b4c9a210b4cf39c1b7a87
2 from __future__
import unicode_literals
6 from .common
import InfoExtractor
7 from .ooyala
import OoyalaIE
8 from ..utils
import unescapeHTML
11 class NintendoIE(InfoExtractor
):
12 _VALID_URL
= r
'https?://(?:www\.)?nintendo\.com/games/detail/(?P<id>[^/?#&]+)'
14 'url': 'http://www.nintendo.com/games/detail/yEiAzhU2eQI1KZ7wOHhngFoAHc1FpHwj',
16 'id': 'MzMmticjp0VPzO3CCj4rmFOuohEuEWoW',
18 'title': 'Duck Hunt Wii U VC NES - Trailer',
22 'skip_download': True,
26 'url': 'http://www.nintendo.com/games/detail/tokyo-mirage-sessions-fe-wii-u',
28 'id': 'tokyo-mirage-sessions-fe-wii-u',
29 'title': 'Tokyo Mirage Sessions ♯FE',
34 def _real_extract(self
, url
):
35 page_id
= self
._match
_id
(url
)
37 webpage
= self
._download
_webpage
(url
, page_id
)
40 OoyalaIE
._build
_url
_result
(m
.group('code'))
42 r
'class=(["\'])embed
-video\
1[^
>]+data
-video
-code
=(["\'])(?P<code>(?:(?!\2).)+)\2',
45 return self.playlist_result(
46 entries, page_id, unescapeHTML(self._og_search_title(webpage, fatal=False)))