1 from .common
import InfoExtractor
4 class NRLTVIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:www\.)?nrl\.com/tv(/[^/]+)*/(?P<id>[^/?&#]+)'
8 'url': 'https://www.nrl.com/tv/news/match-highlights-titans-v-knights-862805/',
10 'id': 'YyNnFuaDE6kPJqlDhG4CGQ_w89mKTau4',
12 'title': 'Match Highlights: Titans v Knights',
16 'skip_download': True,
20 def _real_extract(self
, url
):
21 display_id
= self
._match
_id
(url
)
22 webpage
= self
._download
_webpage
(url
, display_id
)
23 q_data
= self
._parse
_json
(self
._html
_search
_regex
(
24 r
'(?s)q-data="({.+?})"', webpage
, 'player data'), display_id
)
25 ooyala_id
= q_data
['videoId']
26 return self
.url_result(
27 'ooyala:' + ooyala_id
, 'Ooyala', ooyala_id
, q_data
.get('title'))