From c04415c08a312f788c6a55846c0cccdd4e64df69 Mon Sep 17 00:00:00 2001 From: Lev Plyusnin Date: Mon, 18 Nov 2024 07:23:16 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20python=203.9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- ymd/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7c23917..02602b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] name = "yandex-music-downloader" -version = "3.2.0b0" +version = "3.2.0b1" description = "Загрузчик музыки с сервиса Яндекс.Музыка" requires-python = ">=3.9" readme = "README.md" diff --git a/ymd/core.py b/ymd/core.py index 74db7d1..c0027cc 100644 --- a/ymd/core.py +++ b/ymd/core.py @@ -258,7 +258,7 @@ def to_downloadable_track( download_info = track.get_download_info(get_direct_links=True) download_info = [e for e in download_info if e.codec in ("mp3", "aac")] - def sort_key(e: DownloadInfo) -> int | float: + def sort_key(e: DownloadInfo) -> Union[int, float]: aac_multiplier = 1.5 bitrate = e.bitrate_in_kbps if bitrate <= 192: