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", "libcurl",
"libx", "libx",
"matroska", "matroska",
"Microformat",
"microformats",
"mkvtoolsnix", "mkvtoolsnix",
"mpegts", "mpegts",
"msvideo", "msvideo",

View file

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

View file

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