1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
7 compat_urllib_parse_unquote
,
10 from ..utils
import url_basename
13 class RtmpIE(InfoExtractor
):
14 IE_DESC
= False # Do not list
15 _VALID_URL
= r
'(?i)rtmp[est]?://.+'
18 'url': 'rtmp://cp44293.edgefcs.net/ondemand?auth=daEcTdydfdqcsb8cZcDbAaCbhamacbbawaS-bw7dBb-bWG-GqpGFqCpNCnGoyL&aifp=v001&slist=public/unsecure/audio/2c97899446428e4301471a8cb72b4b97--audio--pmg-20110908-0900a_flv_aac_med_int.mp4',
19 'only_matching': True,
21 'url': 'rtmp://edge.live.hitbox.tv/live/dimak',
22 'only_matching': True,
25 def _real_extract(self
, url
):
26 video_id
= compat_urllib_parse_unquote(os
.path
.splitext(url
.rstrip('/').split('/')[-1])[0])
27 title
= compat_urllib_parse_unquote(os
.path
.splitext(url_basename(url
))[0])
34 'format_id': compat_urlparse
.urlparse(url
).scheme
,