From ab75b1f3e47a7ac5c3d6bc5e0ab9ba6270c77999 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 2 Aug 2024 17:23:03 +0200 Subject: [PATCH] fix meta --- Dockerfile | 3 ++- src/library/metadata.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 71a6c9b..bb2a2db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,9 @@ RUN cargo build --release FROM debian:buster RUN apt update && apt upgrade -y -RUN apt install -y gnupg ca-certificates openssl ffmpeg +RUN apt install -y gnupg ca-certificates openssl ffmpeg python3 python3-mutagen +COPY ./src/extract_metadata.py /extract_metadata.py COPY --from=builder /app/target/release/synthwave /synthwave WORKDIR / diff --git a/src/library/metadata.rs b/src/library/metadata.rs index 27ce3a5..3061f9f 100644 --- a/src/library/metadata.rs +++ b/src/library/metadata.rs @@ -39,7 +39,7 @@ pub fn get_metadata(file_path: &str) -> Option { pub fn get_metadata_json(file_path: &str) -> Option { let output = std::process::Command::new("python3") - .arg("src/extract_metadata.py") + .arg("./extract_metadata.py") .arg(file_path) .output() .ok()?;