Made the built-in yt-dlp upgrader actually work.
This commit is contained in:
parent
734de825c8
commit
7292d75f05
3 changed files with 9 additions and 2 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
|
@ -36,6 +36,8 @@
|
||||||
"libcurl",
|
"libcurl",
|
||||||
"libx",
|
"libx",
|
||||||
"matroska",
|
"matroska",
|
||||||
|
"Microformat",
|
||||||
|
"microformats",
|
||||||
"mkvtoolsnix",
|
"mkvtoolsnix",
|
||||||
"mpegts",
|
"mpegts",
|
||||||
"msvideo",
|
"msvideo",
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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 "${@}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue