]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/adobeconnect.py
1 from .common
import InfoExtractor
8 class AdobeConnectIE(InfoExtractor
):
9 _VALID_URL
= r
'https?://\w+\.adobeconnect\.com/(?P<id>[\w-]+)'
11 def _real_extract(self
, url
):
12 video_id
= self
._match
_id
(url
)
13 webpage
= self
._download
_webpage
(url
, video_id
)
14 title
= self
._html
_extract
_title
(webpage
)
15 qs
= compat_parse_qs(self
._search
_regex
(r
"swfUrl\s*=\s*'([^']+)'", webpage
, 'swf url').split('?')[1])
16 is_live
= qs
.get('isLive', ['false'])[0] == 'true'
18 for con_string
in qs
['conStrings'][0].split(','):
20 'format_id': con_string
.split('://')[0],
21 'app': compat_urlparse
.quote('?' + con_string
.split('?')[1] + 'flvplayerapp/' + qs
['appInstance'][0]),
23 'play_path': 'mp4:' + qs
['streamName'][0],
24 'rtmp_conn': 'S:' + qs
['ticket'][0],