Time to sleep
This commit is contained in:
parent
a90c6d4d2e
commit
2e56e06cca
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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>.+)$",
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue