From 04e78f4c10989d80a1d51d33ed206849d144eb80 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Thu, 3 Apr 2025 23:16:47 +0300 Subject: [PATCH] minor fixes --- app/library/config.py | 1 + app/upgrader.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/library/config.py b/app/library/config.py index 5d172572..800a4907 100644 --- a/app/library/config.py +++ b/app/library/config.py @@ -421,6 +421,7 @@ class Config: return data + @staticmethod def ytdlp_version(): try: from yt_dlp.version import __version__ as YTDLP_VERSION diff --git a/app/upgrader.py b/app/upgrader.py index 9e189b3c..219a0e8a 100644 --- a/app/upgrader.py +++ b/app/upgrader.py @@ -39,7 +39,7 @@ class Upgrader: pkg_installer = PackageInstaller() - ytdlp_auto_update: bool = bool(os.environ.get("YTP_YTDLP_AUTO_UPDATE", False)) + ytdlp_auto_update: bool = os.environ.get("YTP_YTDLP_AUTO_UPDATE", "false").strip().lower() == "true" if ytdlp_auto_update: try: