mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-25 12:13:00 +01:00
Fix ffmpeg setup deleting wrong file
This commit is contained in:
parent
960a6db915
commit
f9bc5c7112
@ -65,9 +65,9 @@ def extract_zip_executables(extraction_path, path_and_filename):
|
||||
# We need the first folder name of a file:
|
||||
# ffmpeg-5.0.1-essentials_build/bin/ffmpeg.exe
|
||||
empty_ffmpeg_folder = os.path.join(extraction_path,os.path.dirname(os.path.dirname(files[0])))
|
||||
ffprobe = os.path.join(extraction_path,"ffprobe.exe")
|
||||
print(f"Delete not needed {ffprobe}")
|
||||
os.remove(ffprobe)
|
||||
ffplay = os.path.join(extraction_path,"ffplay.exe")
|
||||
print(f"Delete not needed {ffplay}")
|
||||
os.remove(ffplay)
|
||||
print(f"Delete empty folder: {empty_ffmpeg_folder}")
|
||||
rmtree(empty_ffmpeg_folder)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user