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",
|
||||
"libx",
|
||||
"matroska",
|
||||
"Microformat",
|
||||
"microformats",
|
||||
"mkvtoolsnix",
|
||||
"mpegts",
|
||||
"msvideo",
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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 "${@}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue