Skip to content

Commit

Permalink
Added a check for mp4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Giganticus committed Oct 29, 2020
1 parent 3800da3 commit ce3a67f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MP4toTHP.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('.mp4') == False:
input("There are no mp4 files here! Press enter to exit and next time choose the right folder.")
exit()

print("Not all THP videos have audio. Do you wish to have audio for yours? Then type the corresponding number to your choice.\n[1] Yes\n[2] No")
Audio = input("")

Expand Down

0 comments on commit ce3a67f

Please sign in to comment.