1 from .common
import InfoExtractor
4 class OktoberfestTVIE(InfoExtractor
):
5 _VALID_URL
= r
'https?://(?:www\.)?oktoberfest-tv\.de/[^/]+/[^/]+/video/(?P<id>[^/?#]+)'
8 'url': 'http://www.oktoberfest-tv.de/de/kameras/video/hb-zelt',
12 'title': 're:^Live-Kamera: Hofbräuzelt [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
13 'thumbnail': r
're:^https?://.*\.jpg$',
17 'skip_download': True,
21 def _real_extract(self
, url
):
22 video_id
= self
._match
_id
(url
)
23 webpage
= self
._download
_webpage
(url
, video_id
)
25 title
= self
._html
_search
_regex
(
26 r
'<h1><strong>.*?</strong>(.*?)</h1>', webpage
, 'title')
28 clip
= self
._search
_regex
(
29 r
"clip:\s*\{\s*url:\s*'([^']+)'", webpage
, 'clip')
30 ncurl
= self
._search
_regex
(
31 r
"netConnectionUrl:\s*'([^']+)'", webpage
, 'rtmp base')
32 video_url
= ncurl
+ clip
33 thumbnail
= self
._search
_regex
(
34 r
"canvas:\s*\{\s*backgroundImage:\s*'url\(([^)]+)\)'", webpage
,
35 'thumbnail', fatal
=False)
43 'thumbnail': thumbnail
,