Фикс для python 3.9
This commit is contained in:
parent
73efe1596c
commit
c04415c08a
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue