chore(analyzer): move ffmpeg and utils modules to pipeline

This commit is contained in:
jo 2022-02-14 17:27:58 +01:00 committed by Kyle Robbertze
parent 120f24b1a4
commit c6124b4012
5 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ from math import inf
from pathlib import Path
from typing import List, Optional, Tuple
from .utils import run_
from ._utils import run_
def _ffmpeg(*args, **kwargs):

View File

@ -5,7 +5,7 @@ from typing import Any, Dict
from loguru import logger
from ..ffmpeg import compute_silences, probe_duration
from ._ffmpeg import compute_silences, probe_duration
def analyze_cuepoint(filepath: str, metadata: Dict[str, Any]) -> Dict[str, Any]:

View File

@ -1,7 +1,7 @@
from subprocess import CalledProcessError
from typing import Any, Dict
from ..ffmpeg import compute_replaygain, probe_replaygain
from ._ffmpeg import compute_replaygain, probe_replaygain
def analyze_replaygain(filepath: str, metadata: Dict[str, Any]):

View File

@ -3,7 +3,7 @@ from math import inf
import distro
import pytest
from libretime_analyzer.ffmpeg import (
from libretime_analyzer.pipeline._ffmpeg import (
_SILENCE_DETECT_RE,
compute_replaygain,
compute_silences,
@ -11,7 +11,7 @@ from libretime_analyzer.ffmpeg import (
probe_replaygain,
)
from .fixtures import FILES
from ..fixtures import FILES
@pytest.mark.skip(reason="fixtures files are missing replaygain metadata")