Исправление имени файла для треков, содержащих "."

This commit is contained in:
Lev Plyusnin 2024-11-21 17:36:09 +07:00
parent 0639ea15fc
commit 4bfaef0340
No known key found for this signature in database
GPG key ID: 21C6C2C9C0A4460D
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -286,11 +286,11 @@ def to_downloadable_track(
suffix = ".flac"
else:
raise RuntimeError("Unknown codec")
target_path = base_path.with_suffix(suffix)
target_path = str(base_path) + suffix
return DownloadableTrack(
url=url,
track=track,
bitrate=bitrate,
codec=codec,
path=target_path,
path=Path(target_path),
)