From 52f87af88f55061ae94bd97c54e856966581d521 Mon Sep 17 00:00:00 2001 From: "Matthieu D." Date: Fri, 15 Nov 2024 09:33:32 +0000 Subject: [PATCH] Refactor TubeuUp args to be clearer --- tubeup/TubeUp.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tubeup/TubeUp.py b/tubeup/TubeUp.py index 7dd6801..8d9a635 100644 --- a/tubeup/TubeUp.py +++ b/tubeup/TubeUp.py @@ -27,7 +27,7 @@ def __init__(self, verbose=False, dir_path='~/.tubeup', ia_config_path=None, - output_template=None): + output_template='%(id)s.%(ext)s'): """ `tubeup` is a tool to archive YouTube by downloading the videos and uploading it back to the archive.org. @@ -46,10 +46,7 @@ def __init__(self, self.verbose = verbose self.ia_config_path = ia_config_path self.logger = getLogger(__name__) - if output_template is None: - self.output_template = '%(id)s.%(ext)s' - else: - self.output_template = output_template + self.output_template = output_template # Just print errors in quiet mode if not self.verbose: