Исправление имени файла для треков, содержащих "."
This commit is contained in:
parent
0639ea15fc
commit
4bfaef0340
2 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue