mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 08:22:33 +02: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:
|
# We need the first folder name of a file:
|
||||||
# ffmpeg-5.0.1-essentials_build/bin/ffmpeg.exe
|
# 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])))
|
empty_ffmpeg_folder = os.path.join(extraction_path,os.path.dirname(os.path.dirname(files[0])))
|
||||||
ffprobe = os.path.join(extraction_path,"ffprobe.exe")
|
ffplay = os.path.join(extraction_path,"ffplay.exe")
|
||||||
print(f"Delete not needed {ffprobe}")
|
print(f"Delete not needed {ffplay}")
|
||||||
os.remove(ffprobe)
|
os.remove(ffplay)
|
||||||
print(f"Delete empty folder: {empty_ffmpeg_folder}")
|
print(f"Delete empty folder: {empty_ffmpeg_folder}")
|
||||||
rmtree(empty_ffmpeg_folder)
|
rmtree(empty_ffmpeg_folder)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user