From 3800da309882f9811226f6f1145d253f296aa6de Mon Sep 17 00:00:00 2001 From: Lord-Giganticus Date: Thu, 29 Oct 2020 08:30:07 -0600 Subject: [PATCH] Added a check for THP files --- THP2MP4.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/THP2MP4.py b/THP2MP4.py index cfbf6eb..cac7cb1 100644 --- a/THP2MP4.py +++ b/THP2MP4.py @@ -7,6 +7,11 @@ print(os.getcwd()) input("If this is not the correct folder I swear...") +for name in os.listdir('.'): + if name.endswith('.thp') == False: + input("There are no thp files here! Press enter to exit and next time choose the right folder.") + exit() + THP_Conv = open('THPconv.bat', 'w') THP_Conv.write('for %%a in ("*.thp") do ffmpeg -i "%%a" "%%~na.mp4"') THP_Conv.close()