fix meta
This commit is contained in:
parent
3127d1b287
commit
ab75b1f3e4
2 changed files with 3 additions and 2 deletions
|
@ -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 /
|
||||||
|
|
|
@ -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()?;
|
||||||
|
|
Loading…
Reference in a new issue