Корректные имена исполнителей при загрузке сборников

This commit is contained in:
Lev Plyusnin 2025-06-14 20:52:34 +07:00
parent 8de9c2195a
commit a84a40f38c
No known key found for this signature in database
GPG key ID: 21C6C2C9C0A4460D
3 changed files with 5 additions and 2 deletions

View file

@ -139,6 +139,7 @@ ID:
- Разработчикам проекта [yandex-music-api](https://github.com/MarshalX/yandex-music-api) - Разработчикам проекта [yandex-music-api](https://github.com/MarshalX/yandex-music-api)
- @ArtemBay за [скрипт](https://github.com/MarshalX/yandex-music-api/issues/656#issuecomment-2306542725) получения ссылки на загрузку в lossless качестве - @ArtemBay за [скрипт](https://github.com/MarshalX/yandex-music-api/issues/656#issuecomment-2306542725) получения ссылки на загрузку в lossless качестве
- @keltecc за [метод дешифрования файлов](https://github.com/llistochek/yandex-music-downloader/issues/112#issuecomment-2812535100) - @keltecc за [метод дешифрования файлов](https://github.com/llistochek/yandex-music-downloader/issues/112#issuecomment-2812535100)
- @leowerd за [корректные имена исполнителей](https://github.com/llistochek/yandex-music-downloader/issues/93#issuecomment-2960210879) при загрузке сборников
## Дисклеймер ## Дисклеймер

View file

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

View file

@ -115,8 +115,10 @@ def prepare_base_path(
if albums := track.albums: if albums := track.albums:
album = albums[0] album = albums[0]
track_position = album.track_position track_position = album.track_position
if artists := album.artists: if artists := track.artists:
artist = artists[0] artist = artists[0]
elif artists := album.artists:
artists = artists[0]
if artist is None and (artists := track.artists): if artist is None and (artists := track.artists):
artist = artists[0] artist = artists[0]
repl_dict: dict[str, Union[str, int, None]] = { repl_dict: dict[str, Union[str, int, None]] = {