From a84a40f38c92e3ccc1f7b1539e3d4e26926def56 Mon Sep 17 00:00:00 2001 From: Lev Plyusnin Date: Sat, 14 Jun 2025 20:52:34 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=BD=D1=8B=D0=B5=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B0=20=D0=B8?= =?UTF-8?q?=D1=81=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8=D1=82=D0=B5=D0=BB=D0=B5?= =?UTF-8?q?=D0=B9=20=D0=BF=D1=80=D0=B8=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83?= =?UTF-8?q?=D0=B7=D0=BA=D0=B5=20=D1=81=D0=B1=D0=BE=D1=80=D0=BD=D0=B8=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + pyproject.toml | 2 +- ymd/core.py | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 78e4adf..6dcb8f5 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ ID: - Разработчикам проекта [yandex-music-api](https://github.com/MarshalX/yandex-music-api) - @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) +- @leowerd за [корректные имена исполнителей](https://github.com/llistochek/yandex-music-downloader/issues/93#issuecomment-2960210879) при загрузке сборников ## Дисклеймер diff --git a/pyproject.toml b/pyproject.toml index 422594b..94e43dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] name = "yandex-music-downloader" -version = "3.4.8" +version = "3.4.9" description = "Загрузчик музыки с сервиса Яндекс.Музыка" requires-python = ">=3.9" readme = "README.md" diff --git a/ymd/core.py b/ymd/core.py index 1275bfe..3f36d9e 100644 --- a/ymd/core.py +++ b/ymd/core.py @@ -115,8 +115,10 @@ def prepare_base_path( if albums := track.albums: album = albums[0] track_position = album.track_position - if artists := album.artists: + if artists := track.artists: artist = artists[0] + elif artists := album.artists: + artists = artists[0] if artist is None and (artists := track.artists): artist = artists[0] repl_dict: dict[str, Union[str, int, None]] = {