From 5b2d7db102c05e35c1bc84b81b5d6c8c00b6fca0 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 7 Apr 2023 12:47:33 +0700 Subject: [PATCH] fix chown for channel folder creation --- tubearchivist/home/src/download/yt_dlp_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubearchivist/home/src/download/yt_dlp_handler.py b/tubearchivist/home/src/download/yt_dlp_handler.py index 5db44bfd..fe31c03f 100644 --- a/tubearchivist/home/src/download/yt_dlp_handler.py +++ b/tubearchivist/home/src/download/yt_dlp_handler.py @@ -395,8 +395,8 @@ class VideoDownloader: new_folder = os.path.join(videos, channel_name) if not os.path.exists(new_folder): os.makedirs(new_folder) - if host_uid and host_gid: - os.chown(new_folder, host_uid, host_gid) + if host_uid and host_gid: + os.chown(new_folder, host_uid, host_gid) # find real filename cache_dir = self.config["application"]["cache_dir"] all_cached = ignore_filelist(os.listdir(cache_dir + "/download/"))