diff --git a/.vscode/settings.json b/.vscode/settings.json index 41b2ff98..a33e3d15 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,6 +36,8 @@ "libcurl", "libx", "matroska", + "Microformat", + "microformats", "mkvtoolsnix", "mpegts", "msvideo", diff --git a/app/upgrader.py b/app/upgrader.py index 219a0e8a..679eccd9 100644 --- a/app/upgrader.py +++ b/app/upgrader.py @@ -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() diff --git a/entrypoint.sh b/entrypoint.sh index 2706d0ee..9a341cf9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 "${@}"