From e872701284c23afe84d99f3b0fb612e24703e1dd Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Wed, 6 Mar 2024 15:51:45 -0700 Subject: [PATCH] set file perms to 666 --- cyberdrop_dl/downloader/downloader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cyberdrop_dl/downloader/downloader.py b/cyberdrop_dl/downloader/downloader.py index f0461e829..6e45ded5f 100644 --- a/cyberdrop_dl/downloader/downloader.py +++ b/cyberdrop_dl/downloader/downloader.py @@ -3,6 +3,7 @@ import asyncio import copy import itertools +import os import traceback from dataclasses import field, Field from functools import wraps @@ -350,7 +351,9 @@ async def download(self, media_item: MediaItem) -> None: except FileExistsError: complete_file, _partial_file = await self.iterate_filename(complete_file, media_item) partial_file.rename(complete_file) - + + os.chmod(complete_file, 0o666) + await self.set_file_datetime(media_item, complete_file) await self.mark_completed(media_item)