show real URL of RTMP stream, fix #329

This commit is contained in:
Mort Yao 2014-05-22 14:04:22 +02:00
parent 6eced06b11
commit 94b99128a5
2 changed files with 2 additions and 3 deletions

View File

@ -674,7 +674,8 @@ def download_urls_chunked(urls, title, ext, total_size, output_dir='.', refer=No
def download_rtmp_url(url, playpath, title, ext, total_size=0, output_dir='.', refer=None, merge=True, faker=False):
assert url
if dry_run:
print('Real URLs:\n%s\n' % [url])
print('Real URL:\n%s\n' % [url])
print('Real Playpath:\n%s\n' % [playpath])
return
if player:

View File

@ -17,8 +17,6 @@ def theplatform_download_by_pid(pid, title, output_dir='.', merge=True, info_onl
print_info(site_info, title, type, size)
if not info_only:
#from ..processor.rtmpdump import has_rtmpdump_installed, download_rtmpdump_stream
#assert has_rtmpdump_installed(), "RTMPDump not installed."
download_rtmp_url(url=smil_base, playpath=ext+':'+smil_video, title=title, ext=ext, output_dir=output_dir)
site_info = "thePlatform.com"