From 4bfaef03403c6594701488618f1b4ee912c480d4 Mon Sep 17 00:00:00 2001 From: Lev Plyusnin Date: Thu, 21 Nov 2024 17:36:09 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B8=20?= =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20=D0=B4=D0=BB=D1=8F=20=D1=82?= =?UTF-8?q?=D1=80=D0=B5=D0=BA=D0=BE=D0=B2,=20=D1=81=D0=BE=D0=B4=D0=B5?= =?UTF-8?q?=D1=80=D0=B6=D0=B0=D1=89=D0=B8=D1=85=20"."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- ymd/core.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f2b6869..04d3ddf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/ymd/core.py b/ymd/core.py index 945cec7..e702c05 100644 --- a/ymd/core.py +++ b/ymd/core.py @@ -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), )