[myvideo] Use RTMP instead of RTMPT (Fixes #2032)

This commit is contained in:
Philipp Hagemeister 2013-12-23 15:57:43 +01:00
parent 1538eff6d8
commit f45f96f8f8
2 changed files with 9 additions and 2 deletions

View file

@ -143,8 +143,10 @@ class MyVideoIE(InfoExtractor):
if mobj:
video_url = compat_urllib_parse.unquote(mobj.group(1))
if 'myvideo2flash' in video_url:
self._downloader.report_warning(u'forcing RTMPT ...')
video_url = video_url.replace('rtmpe://', 'rtmpt://')
self.report_warning(
u'Rewriting URL to use unencrypted rtmp:// ...',
video_id)
video_url = video_url.replace('rtmpe://', 'rtmp://')
if not video_url:
# extract non rtmp videos