diff --git a/rarpar.py b/rarpar.py index c3318dd..189b0c9 100644 --- a/rarpar.py +++ b/rarpar.py @@ -375,6 +375,8 @@ def rarpar( date = time.strftime('%Y-%m-%d') timestamp = time.strftime('%Y-%m-%d_%H-%M-%S') + + basename = re.sub(r'\.rar$', '', basename) if not basename: basename = f'{path.basename} ({timestamp})' else: