chore(analyzer): move ffmpeg and utils modules to pipeline
This commit is contained in:
parent
120f24b1a4
commit
c6124b4012
|
@ -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):
|
|
@ -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]:
|
||||
|
|
|
@ -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]):
|
||||
|
|
|
@ -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")
|
Loading…
Reference in New Issue