diff --git a/web/backend/Dockerfile b/web/backend/Dockerfile index ebc3c50..45497dd 100644 --- a/web/backend/Dockerfile +++ b/web/backend/Dockerfile @@ -1,9 +1,10 @@ FROM python:3.13-slim -# Install FFmpeg, system dependencies, and gosu from APT +# Install FFmpeg, opustags, system dependencies, and gosu from APT RUN apt-get update && \ apt-get install -y --no-install-recommends \ ffmpeg \ + opustags \ ca-certificates \ gosu \ && \ diff --git a/web/backend/services/splitter.py b/web/backend/services/splitter.py index fa82df8..46ba643 100644 --- a/web/backend/services/splitter.py +++ b/web/backend/services/splitter.py @@ -70,21 +70,9 @@ def run_split_task(task_id: str, tracklist: List[TracklistEntry], options: Dict[ from audio_splitter.core import split_audio - # Detect attached picture and extract if applicable - cover_image_path = None - if not args.drop_video: - from audio_splitter.ffmpeg import is_attached_picture, extract_cover_image, get_stream_info - input_path_str = str(input_path) - stream_info = get_stream_info(input_path_str) - if stream_info.get('has_video') and is_attached_picture(input_path_str): - cover_image_path = output_dir / 'cover.png' - if extract_cover_image(input_path_str, str(cover_image_path)): - print(f"Extracted cover image for task {task_id}") - else: - cover_image_path = None - - # Attach cover image to args - args.cover_image = str(cover_image_path) if cover_image_path else None + # Cover image handling is now done internally by split_audio() + # via the handler system (opustags for Opus, ffmpeg for others) + args.cover_image = None task_manager.update_task_with_progress( task_id, progress=10, message="Starting split..."