From 58967652019f49cd5b6089127a24dc3bf105931f Mon Sep 17 00:00:00 2001 From: stabbedbybrick <125766685+stabbedbybrick@users.noreply.github.com> Date: Sat, 23 Dec 2023 15:18:22 +0100 Subject: [PATCH] Bump version to v1.1.0 --- utils/__init__.py | 2 +- utils/commands.py | 4 ++-- utils/utilities.py | 8 +++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/utils/__init__.py b/utils/__init__.py index 7aa0c58..2f0abb8 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -1 +1 @@ -__version__ = "v1.1.0-dev" +__version__ = "v1.1.0" diff --git a/utils/commands.py b/utils/commands.py index 1b8eaf3..3cb72bf 100644 --- a/utils/commands.py +++ b/utils/commands.py @@ -12,7 +12,7 @@ from utils.console import custom_handler from utils.docs.documentation import main_help from utils.manager import service_manager from utils.search.search import search_engine -from utils.utilities import is_url +from utils.utilities import is_url, check_version console = Console() @@ -29,7 +29,7 @@ def cli(debug: bool): logging.getLogger("httpx").setLevel(logging.WARNING) click.echo(f"\nāÆ_ š•—š•£š•–š•–š•§š•šš•Ÿš•– {__version__}\n") - # check_version(__version__) + check_version(__version__) @cli.command() diff --git a/utils/utilities.py b/utils/utilities.py index 3d38cf8..562d507 100644 --- a/utils/utilities.py +++ b/utils/utilities.py @@ -2,6 +2,7 @@ import base64 import datetime import re import shutil +import logging import xml.etree.ElementTree as ET from datetime import datetime, timedelta # noqa: F811 from pathlib import Path @@ -12,6 +13,7 @@ import requests from pywidevine.device import Device, DeviceTypes from unidecode import unidecode +log = logging.getLogger() def create_wvd(dir: Path) -> Path: """ @@ -29,7 +31,7 @@ def create_wvd(dir: Path) -> Path: client_id = file if not private_key and not client_id: - error("Required key and client ID not found") + log.error("Required key and client ID not found") exit(1) device = Device( @@ -44,7 +46,7 @@ def create_wvd(dir: Path) -> Path: dir / f"{device.type.name}_{device.system_id}_l{device.security_level}.wvd" ) device.dump(out_path) - info("New WVD file successfully created") + log.info("New WVD file successfully created") return next(dir.glob("*.wvd"), None) @@ -56,7 +58,7 @@ def get_wvd(cwd: Path) -> Path: wvd = next(dir.glob("*.wvd"), None) if not wvd: - info("WVD file is missing. Attempting to create a new one...") + log.info("WVD file is missing. Attempting to create a new one...") wvd = create_wvd(dir) return wvd