From b816eb3596546eea672b6194e6a6958e049f280e Mon Sep 17 00:00:00 2001 From: tcely Date: Wed, 29 Jan 2025 04:05:18 -0500 Subject: [PATCH] fixup: use the name attribute --- tubesync/sync/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubesync/sync/youtube.py b/tubesync/sync/youtube.py index 32658ac4..c0360ca9 100644 --- a/tubesync/sync/youtube.py +++ b/tubesync/sync/youtube.py @@ -254,10 +254,10 @@ def download_media(url, media_format, extension, output_file, info_json, temp_dir_parent = ytopts['paths']['temp'] temp_dir_prefix = f'{temp_dir_prefix}{v_key}-' temp_dir = TemporaryDirectory(prefix=temp_dir_prefix,dir=temp_dir_parent) - (Path(temp_dir) / '.ignore').touch(exist_ok=True) + (Path(temp_dir.name) / '.ignore').touch(exist_ok=True) ytopts['paths'].update({ 'home': output_dir, - 'temp': temp_dir, + 'temp': temp_dir.name, }) codec_options = []