diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | convert.py | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ # convert.py -This tool can convert files from mp4, mkv or webw to mp3. +This tool can convert files from mp4, mkv, webw, mod or xm to mp3. It use ffmpeg for the conversion. @@ -27,7 +27,7 @@ if len(sys.argv) >= 3 and len(sys.argv) <= 4: print("No such file or directory: '"+str(sourcedir)+"'") sys.exit() else: - print("Simple tool for convert mp4, mkv or webm file to mp3") + print("Simple tool for convert mp4, mkv, webm, mod or xm file to mp3") print("Usage:\nconvert.py [-n|-y] [SOURCE] [DESTINATION]") print(" -n ffmpeg: Doesn't overwrite output files, and go to next file to be converted if the specified output file already exists. (Default option)") print(" -y ffmpeg: Overwrite output files.") @@ -53,7 +53,7 @@ count = 0 for file in sorted(os.listdir(sourcedir)): try: name = file[:file.rfind(".")] - ext = [".mp4", ".mkv", ".webm"] + ext = [".mp4", ".mkv", ".webm", ".mod", ".xm"] if file.endswith(tuple(ext)): exist = False if os.path.isfile(outdir+"/"+name+".mp3") and arg == "-n": |