3 from .common
import InfoExtractor
6 class AdobeConnectIE(InfoExtractor
):
7 _VALID_URL
= r
'https?://\w+\.adobeconnect\.com/(?P<id>[\w-]+)'
9 def _real_extract(self
, url
):
10 video_id
= self
._match
_id
(url
)
11 webpage
= self
._download
_webpage
(url
, video_id
)
12 title
= self
._html
_extract
_title
(webpage
)
13 qs
= urllib
.parse
.parse_qs(self
._search
_regex
(r
"swfUrl\s*=\s*'([^']+)'", webpage
, 'swf url').split('?')[1])
14 is_live
= qs
.get('isLive', ['false'])[0] == 'true'
16 for con_string
in qs
['conStrings'][0].split(','):
18 'format_id': con_string
.split('://')[0],
19 'app': urllib
.parse
.quote('?' + con_string
.split('?')[1] + 'flvplayerapp/' + qs
['appInstance'][0]),
21 'play_path': 'mp4:' + qs
['streamName'][0],
22 'rtmp_conn': 'S:' + qs
['ticket'][0],