]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/adobeconnect.py
   2 from __future__ 
import unicode_literals
 
   4 from .common 
import InfoExtractor
 
  11 class AdobeConnectIE(InfoExtractor
): 
  12     _VALID_URL 
= r
'https?://\w+\.adobeconnect\.com/(?P<id>[\w-]+)' 
  14     def _real_extract(self
, url
): 
  15         video_id 
= self
._match
_id
(url
) 
  16         webpage 
= self
._download
_webpage
(url
, video_id
) 
  17         title 
= self
._html
_search
_regex
(r
'<title>(.+?)</title>', webpage
, 'title') 
  18         qs 
= compat_parse_qs(self
._search
_regex
(r
"swfUrl\s*=\s*'([^']+)'", webpage
, 'swf url').split('?')[1]) 
  19         is_live 
= qs
.get('isLive', ['false'])[0] == 'true' 
  21         for con_string 
in qs
['conStrings'][0].split(','): 
  23                 'format_id': con_string
.split('://')[0], 
  24                 'app': compat_urlparse
.quote('?' + con_string
.split('?')[1] + 'flvplayerapp/' + qs
['appInstance'][0]), 
  26                 'play_path': 'mp4:' + qs
['streamName'][0], 
  27                 'rtmp_conn': 'S:' + qs
['ticket'][0], 
  34             'title': self
._live
_title
(title
) if is_live 
else title
,