1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-01 08:09:48 +02:00

Fix ffmpeg setup deleting wrong file

This commit is contained in:
Elias Steurer 2023-01-29 14:07:09 +01:00
parent 960a6db915
commit f9bc5c7112

View File

@ -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)