This commit is contained in:
Elghinnarisa
2022-09-09 20:18:34 +02:00
parent 19ad920d93
commit d4d12e2d41
12 changed files with 54 additions and 30 deletions

View File

@@ -12,9 +12,12 @@ skipto = " -ss "
#droppedFile = "test.mkv"
del sys.argv[0]
for i, each in enumerate(sys.argv):
#skip first part of sys.argv since it points to script location
arguments = sys.argv[1:]
for i, each in enumerate(arguments):
arg_list = 'ffprobe.exe -i "{each}"'.format(each=each)
@@ -36,7 +39,7 @@ x = (int(x) for x in input ("Enter tracks to keep: ").split())
track = "".join(" -map 0:a:{}".format(y) for y in x)
for each in sys.argv:
for each in arguments:
path = each
basename = os.path.basename(path)