Made the built-in yt-dlp upgrader actually work.

This commit is contained in:
arabcoders 2025-05-01 17:08:08 +03:00
parent 734de825c8
commit 7292d75f05
3 changed files with 9 additions and 2 deletions

View file

@ -36,6 +36,8 @@
"libcurl",
"libx",
"matroska",
"Microformat",
"microformats",
"mkvtoolsnix",
"mpegts",
"msvideo",

View file

@ -75,11 +75,10 @@ if __name__ == "__main__":
try:
import coloredlogs
logging.basicConfig(level=logging.DEBUG)
coloredlogs.install(
level=logging.INFO, fmt="%(asctime)s [%(name)s] [%(levelname)-5.5s] %(message)s", datefmt="%H:%M:%S"
)
except ImportError:
pass
logging.basicConfig(level=logging.DEBUG)
Upgrader()

View file

@ -32,4 +32,10 @@ if [ ! -w "${YTP_DOWNLOAD_PATH}" ]; then
exit 1
fi
###########
# Run yt-dlp upgrader
# This will update yt-dlp to the latest version
###########
/opt/python/bin/python /app/app/upgrader.py
exec "${@}"