Корректные имена исполнителей при загрузке сборников
This commit is contained in:
parent
8de9c2195a
commit
a84a40f38c
3 changed files with 5 additions and 2 deletions
|
|
@ -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) при загрузке сборников
|
||||||
|
|
||||||
|
|
||||||
## Дисклеймер
|
## Дисклеймер
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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]] = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue