view remuxaudio.py @ 115:f10492e8720b

kemonopartydownloader.py: add youtube downloader stubs and dump json to disk
author Paper <mrpapersonic@gmail.com>
date Mon, 23 Jan 2023 23:58:22 -0500
parents 2aa9614cb39a
children
line wrap: on
line source

import os

count = 0
for path, folder, files in os.walk("./"):
    for file in files:
        if file.endswith('.mkv'):
            count += 1
            file_mod = file[:len(file) - 15]
            file_mod = f'KIZNAIVER - {count:02} [{file_mod[7:]}]'
            os.system(f'mkvmerge -o "output\{file_mod}.mkv" --audio-tracks 2 --subtitle-tracks 6 "{file}"')
            os.system(f'mkvpropedit --delete-attachment mime-type:image/jpeg "output\{file_mod}.mkv"')