-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AUDIO_DOWNLOAD_DIR #396
Comments
I don't fully understand with your description, but yt-dlp needs to write temporary files first, then use ffmpeg to convent it to a final file, and finally move it into download_dir. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
may it is an user error, but I cant use:
AUDIO_DOWNLOAD_DIR=/music
version: "3"
services:
metube:
image: ghcr.io/alexta69/metube
container_name: metube
restart: unless-stopped
ports:
- 8081:8081
volumes:
- /downloads:/downloads
networks:
dockge_default:
external: true
.env
AUDIO_DOWNLOAD_DIR=/music
I tried diffrent approches nothing worked out,
I even tried to change the entery script
#!/bin/sh
echo "Setting umask to ${UMASK}"
umask ${UMASK}
echo "Creating download directory (${DOWNLOAD_DIR}), audio download directory (${AUDIO_DOWNLOAD_DIR}), state directory (${STATE_DIR}), and temp dir (${TEMP_DIR})"
mkdir -p "${DOWNLOAD_DIR}" "${AUDIO_DOWNLOAD_DIR}" "${STATE_DIR}" "${TEMP_DIR}" "/music"
if [
id -u
-eq 0 ] && [id -g
-eq 0 ]; thenif [ "${UID}" -eq 0 ]; then
echo "Warning: it is not recommended to run as root user; please check your setting of the UID environment variable"
fi
echo "Changing ownership of download, state, and audio download directories to ${UID}:${GID}"
chown -R "${UID}":"${GID}" /app "${DOWNLOAD_DIR}" "${AUDIO_DOWNLOAD_DIR}" "${STATE_DIR}" "${TEMP_DIR}" "/music"
echo "Running MeTube as user ${UID}:${GID}"
su-exec "${UID}":"${GID}" python3 app/main.py
else
echo "User set by Docker; running MeTube as
id -u
:id -g
"python3 app/main.py
fi
Im not a dev spend few hours to understand what my issue is. I only want to separate the audios from the others :/
edit: i saw only now this:
metube | ERROR: Unable to download video: [Errno 2] No such file or directory: '/downloads/Wind.webm.part'
metube | INFO:ytdl:waiting for item to download
did it stilltries to download into the /downloads folder?
The text was updated successfully, but these errors were encountered: