From ff5fcca54871e8734f1c14e8a236bd06998731ac Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 24 May 2021 16:21:28 -0700 Subject: [PATCH] Log exact path of queuefile while creating it. --- ycdl/ycdldb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ycdl/ycdldb.py b/ycdl/ycdldb.py index e796bff..02e9bb8 100644 --- a/ycdl/ycdldb.py +++ b/ycdl/ycdldb.py @@ -343,12 +343,12 @@ class YCDLDBVideoMixin: download_directory = self.config['download_directory'] extension = self.config['queuefile_extension'] - self.log.info('Creating queuefile for %s.', video.id) - download_directory = pathclass.Path(download_directory) - download_directory.makedirs(exist_ok=True) - queuefile = download_directory.with_child(video.id).replace_extension(extension) + + self.log.info('Creating %s.', queuefile.absolute_path) + + download_directory.makedirs(exist_ok=True) queuefile.touch() video.mark_state('downloaded', commit=False)