Skip to content

Commit

Permalink
Added a check for THP files
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Giganticus committed Oct 29, 2020
1 parent 3de1514 commit 3800da3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions THP2MP4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3800da3

Please sign in to comment.