Log exact path of queuefile while creating it.

This commit is contained in:
voussoir 2021-05-24 16:21:28 -07:00
parent 16be502991
commit ff5fcca548
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -343,12 +343,12 @@ class YCDLDBVideoMixin:
download_directory = self.config['download_directory'] download_directory = self.config['download_directory']
extension = self.config['queuefile_extension'] extension = self.config['queuefile_extension']
self.log.info('Creating queuefile for %s.', video.id)
download_directory = pathclass.Path(download_directory) download_directory = pathclass.Path(download_directory)
download_directory.makedirs(exist_ok=True)
queuefile = download_directory.with_child(video.id).replace_extension(extension) 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() queuefile.touch()
video.mark_state('downloaded', commit=False) video.mark_state('downloaded', commit=False)