minor fixes
This commit is contained in:
parent
245a3e7f98
commit
04e78f4c10
2 changed files with 2 additions and 1 deletions
|
|
@ -421,6 +421,7 @@ class Config:
|
|||
|
||||
return data
|
||||
|
||||
@staticmethod
|
||||
def ytdlp_version():
|
||||
try:
|
||||
from yt_dlp.version import __version__ as YTDLP_VERSION
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue