Исправление имени файла для треков, содержащих "."
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]
|
[project]
|
||||||
name = "yandex-music-downloader"
|
name = "yandex-music-downloader"
|
||||||
version = "3.2.0b2"
|
version = "3.2.0b3"
|
||||||
description = "Загрузчик музыки с сервиса Яндекс.Музыка"
|
description = "Загрузчик музыки с сервиса Яндекс.Музыка"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
||||||
|
|
@ -286,11 +286,11 @@ def to_downloadable_track(
|
||||||
suffix = ".flac"
|
suffix = ".flac"
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("Unknown codec")
|
raise RuntimeError("Unknown codec")
|
||||||
target_path = base_path.with_suffix(suffix)
|
target_path = str(base_path) + suffix
|
||||||
return DownloadableTrack(
|
return DownloadableTrack(
|
||||||
url=url,
|
url=url,
|
||||||
track=track,
|
track=track,
|
||||||
bitrate=bitrate,
|
bitrate=bitrate,
|
||||||
codec=codec,
|
codec=codec,
|
||||||
path=target_path,
|
path=Path(target_path),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue