From 8f8d0037a95198be2bc6d541f0a994a9fa579965 Mon Sep 17 00:00:00 2001 From: limkokhole Date: Sun, 26 Jul 2020 01:18:55 +0800 Subject: [PATCH] Log filename as .log instead of _log --- pinterest-downloader.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pinterest-downloader.py b/pinterest-downloader.py index e26bb13..280e031 100644 --- a/pinterest-downloader.py +++ b/pinterest-downloader.py @@ -26,7 +26,7 @@ __credits__ = ['Inspired by https://github.com/SevenLines/pinterest-board-downlo __license__ = 'MIT' # Version increase if the output file/dir naming incompatible with existing #, which might re-download for some files of previous version because of dir/filename not match -__version__ = 1.6 +__version__ = 1.7 __maintainer__ = 'Lim Kok Hole' __email__ = 'limkokhole@gmail.com' __status__ = 'Production' @@ -728,8 +728,7 @@ def write_log(arg_timestamp_log, save_dir, images, pin, arg_cut): log_timestamp = 'log-pinterest-downloader' # sanitize enough, no nid max path in case PIN id too long, throws err (too long path) # to inform me better than silently guess to slice [:100] early and hide this issue - log_path = os.path.join(save_dir, '{}'.format( sanitize(log_timestamp + '.log' ))) - #print('log_path: ' + log_path) + log_path = os.path.join(save_dir, '{}'.format( sanitize(log_timestamp) + '.log' )) if images: with open(log_path, 'w') as f: # Reset before append