annotate remuxaudio.py @ 36:8e49e6662429
Add updatechromium.py
committer: GitHub <noreply@github.com>
author |
Paper <37962225+mrpapersonic@users.noreply.github.com> |
date |
Mon, 21 Jun 2021 10:24:19 -0400 |
parents |
41bf22504479 |
children |
2aa9614cb39a |
rev |
line source |
29
|
1 import os, sys
|
|
2
|
|
3 count = 0
|
|
4 for path, folder, files in os.walk("./"):
|
|
5 for file in files:
|
|
6 if file.endswith('.mkv'):
|
|
7 count += 1
|
|
8 file_mod = file[:len(file) - 15]
|
|
9 file_mod = f'KIZNAIVER - {count:02} [{file_mod[7:]}]'
|
|
10 os.system(f'mkvmerge -o "output\{file_mod}.mkv" --audio-tracks 2 --subtitle-tracks 6 "{file}"')
|
|
11 os.system(f'mkvpropedit --delete-attachment mime-type:image/jpeg "output\{file_mod}.mkv"') |