Time to sleep

This commit is contained in:
Maximilien Rigaut 2022-02-07 07:03:20 +01:00
parent a90c6d4d2e
commit 2e56e06cca
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ def action_sort(argsp):
logging.debug(e, exc_info=True)
# Write a cancel file
if argsp.dry_run and len(list_of_operations) > 0:
if not argsp.dry_run and len(list_of_operations) > 0 or argsp.verbose > 3:
logging.info("Writing cancel file...")
with open(os.path.join(argsp.output, argsp.cancel_file), "w", encoding="utf-8") as f:
for origin, destination in list_of_operations:

View File

@ -146,7 +146,7 @@ class ArtistHandler(FileHandler):
def guess_artist_and_file_name(self):
"""Try to guess artist from file name"""
regex = [
r"(?P<file_name>.+) by (?P<artist>.+)$",
r"(?P<file_name>.+) by (?P<artist>[^\.]+)\..*$",
r"(?P<artist>[^-]+)-(?P<file_name>.+)$",
# r"(?P<artist>.+)_(?P<file_name>.+)$",
]