feat (back): removes cover image handling, since it's in core now
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
FROM python:3.13-slim
|
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 && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
|
opustags \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
gosu \
|
gosu \
|
||||||
&& \
|
&& \
|
||||||
|
|||||||
@@ -70,21 +70,9 @@ def run_split_task(task_id: str, tracklist: List[TracklistEntry], options: Dict[
|
|||||||
|
|
||||||
from audio_splitter.core import split_audio
|
from audio_splitter.core import split_audio
|
||||||
|
|
||||||
# Detect attached picture and extract if applicable
|
# Cover image handling is now done internally by split_audio()
|
||||||
cover_image_path = None
|
# via the handler system (opustags for Opus, ffmpeg for others)
|
||||||
if not args.drop_video:
|
args.cover_image = None
|
||||||
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
|
|
||||||
|
|
||||||
task_manager.update_task_with_progress(
|
task_manager.update_task_with_progress(
|
||||||
task_id, progress=10, message="Starting split..."
|
task_id, progress=10, message="Starting split..."
|
||||||
|
|||||||
Reference in New Issue
Block a user