Фикс для python 3.9

This commit is contained in:
Lev Plyusnin 2024-11-18 07:23:16 +07:00
parent 73efe1596c
commit c04415c08a
No known key found for this signature in database
GPG key ID: 21C6C2C9C0A4460D
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "yandex-music-downloader" name = "yandex-music-downloader"
version = "3.2.0b0" version = "3.2.0b1"
description = "Загрузчик музыки с сервиса Яндекс.Музыка" description = "Загрузчик музыки с сервиса Яндекс.Музыка"
requires-python = ">=3.9" requires-python = ">=3.9"
readme = "README.md" readme = "README.md"

View file

@ -258,7 +258,7 @@ def to_downloadable_track(
download_info = track.get_download_info(get_direct_links=True) download_info = track.get_download_info(get_direct_links=True)
download_info = [e for e in download_info if e.codec in ("mp3", "aac")] 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 aac_multiplier = 1.5
bitrate = e.bitrate_in_kbps bitrate = e.bitrate_in_kbps
if bitrate <= 192: if bitrate <= 192: