summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Containerfile2
-rwxr-xr-xdeploy_services.sh1
-rw-r--r--src/tasks.ts4
3 files changed, 2 insertions, 5 deletions
diff --git a/Containerfile b/Containerfile
index 2ca7692..202369d 100644
--- a/Containerfile
+++ b/Containerfile
@@ -1,4 +1,4 @@
-FROM fedora:latest
+FROM quay.io/fedora/fedora:latest
RUN dnf install -y npm nodejs tsc yt-dlp
RUN groupadd veetibot && useradd -g veetibot veetibot
RUN mkdir /veetibot && chown -R veetibot:veetibot veetibot
diff --git a/deploy_services.sh b/deploy_services.sh
index 9549ed2..380eede 100755
--- a/deploy_services.sh
+++ b/deploy_services.sh
@@ -9,5 +9,4 @@ export XDG_RUNTIME_DIR="/run/user/$(id -u)"
cp veetibot.build /home/slack-veetibot/.config/containers/systemd/
cp veetibot.container /home/slack-veetibot/.config/containers/systemd/
systemctl --user daemon-reload
-cp /run/user/1005/systemd/generator/veetibot.service /home/slack-veetibot/.config/systemd/user
systemctl --user enable veetibot
diff --git a/src/tasks.ts b/src/tasks.ts
index cbbbbd1..07c29e5 100644
--- a/src/tasks.ts
+++ b/src/tasks.ts
@@ -24,9 +24,7 @@ export const runDownloadUrlTask = async (task: Task) => {
}
const { stdout } = await asyncExec(
- `yt-dlp -f "bestvideo[ext=mp4][vcodec!*=vp9]+bestaudio/best[ext=mp4][vcodec!*=vp9]" \
- --merge-output-format mp4 \
- --restrict-filenames -o "${filename}" -P downloads --cookies-from-browser chromium "${task.url}"`,
+ `yt-dlp -t mp4 --merge-output-format mp4 --restrict-filenames -o "${filename}" -P downloads --cookies-from-browser chromium "${task.url}"`,
);
console.log(stdout);
task.respondWithFile(filename);