nixfiles/musicutil/utils/do_replaygain.py

13 lines
263 B
Python
Raw Normal View History

2022-02-06 15:20:12 +00:00
from ..types import File
from ..meta import r128gain_path, ffmpeg_path
from subprocess import run as run_command
def do_replaygain(file: File):
run_command([
r128gain_path,
"-f", ffmpeg_path,
"-s",
file.join_path_to()
])