This commit is contained in:
JMARyA 2024-08-02 17:23:03 +02:00
parent 3127d1b287
commit ab75b1f3e4
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 3 additions and 2 deletions

View file

@ -8,8 +8,9 @@ RUN cargo build --release
FROM debian:buster FROM debian:buster
RUN apt update && apt upgrade -y 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 COPY --from=builder /app/target/release/synthwave /synthwave
WORKDIR / WORKDIR /

View file

@ -39,7 +39,7 @@ pub fn get_metadata(file_path: &str) -> Option<AudioMetadata> {
pub fn get_metadata_json(file_path: &str) -> Option<serde_json::Value> { pub fn get_metadata_json(file_path: &str) -> Option<serde_json::Value> {
let output = std::process::Command::new("python3") let output = std::process::Command::new("python3")
.arg("src/extract_metadata.py") .arg("./extract_metadata.py")
.arg(file_path) .arg(file_path)
.output() .output()
.ok()?; .ok()?;