mirror of
https://github.com/soimort/you-get.git
synced 2025-01-26 06:55:03 +03:00
fix bug about renaming videos when downloading with ffmpeg
This commit is contained in:
parent
7e5abc9371
commit
8674f43c36
@ -916,6 +916,11 @@ def download_url_ffmpeg(url,title, ext,params={}, total_size=0, output_dir='.',
|
|||||||
|
|
||||||
from .processor.ffmpeg import has_ffmpeg_installed, ffmpeg_download_stream
|
from .processor.ffmpeg import has_ffmpeg_installed, ffmpeg_download_stream
|
||||||
assert has_ffmpeg_installed(), "FFmpeg not installed."
|
assert has_ffmpeg_installed(), "FFmpeg not installed."
|
||||||
|
global output_filename
|
||||||
|
if(output_filename)
|
||||||
|
dotPos = output_filename.rfind(".")
|
||||||
|
title = output_filename[:dotPos]
|
||||||
|
ext = output_filename[dotPos+1:]
|
||||||
ffmpeg_download_stream(url, title, ext, params, output_dir)
|
ffmpeg_download_stream(url, title, ext, params, output_dir)
|
||||||
|
|
||||||
def playlist_not_supported(name):
|
def playlist_not_supported(name):
|
||||||
|
Loading…
Reference in New Issue
Block a user