fix syntax error

This commit is contained in:
Yohohaha 2016-11-25 20:03:38 +08:00 committed by GitHub
parent c44a7ec1b9
commit fe2720544a

View File

@ -969,7 +969,7 @@ def download_url_ffmpeg(url,title, ext,params={}, total_size=0, output_dir='.',
from .processor.ffmpeg import has_ffmpeg_installed, ffmpeg_download_stream
assert has_ffmpeg_installed(), "FFmpeg not installed."
global output_filename
if(output_filename)
if(output_filename):
dotPos = output_filename.rfind(".")
title = output_filename[:dotPos]
ext = output_filename[dotPos+1:]