From 477b4b4635493d224fa5c65ce7a9309b6ea382ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Dudzi=C5=84ski?= <56404247+oskvr37@users.noreply.github.com> Date: Wed, 29 Apr 2026 13:49:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Files=20are=20no=20longer=20writ?= =?UTF-8?q?ten=20with=20restrictive=20permissions=20(#347)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add chmod mask after file download (fix #265) * 🚀 Bump version to 3.4.0a4 --- pyproject.toml | 2 +- tiddl/cli/commands/download/downloader.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f1d8fc4..6147e5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "tiddl" -version = "3.4.0a3" +version = "3.4.0a4" description = "Download Tidal tracks with CLI downloader." readme = "README.md" requires-python = ">=3.13" diff --git a/tiddl/cli/commands/download/downloader.py b/tiddl/cli/commands/download/downloader.py index 8213e92..60dbc51 100644 --- a/tiddl/cli/commands/download/downloader.py +++ b/tiddl/cli/commands/download/downloader.py @@ -197,6 +197,11 @@ class Downloader: shutil.move(tmp.name, download_path) + try: + download_path.chmod(0o644) + except OSError: + pass + try: if isinstance(item, Track) and should_extract_flac: download_path = extract_flac(download_path)