minor fixes

This commit is contained in:
arabcoders 2025-04-03 23:16:47 +03:00
parent 245a3e7f98
commit 04e78f4c10
2 changed files with 2 additions and 1 deletions

View file

@ -421,6 +421,7 @@ class Config:
return data
@staticmethod
def ytdlp_version():
try:
from yt_dlp.version import __version__ as YTDLP_VERSION

View file

@ -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: