Skip to content

Commit f9343cb

Browse files
author
jrelax
committed
removed some debugging
1 parent 80bebc1 commit f9343cb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

asset-assistant.py

-7
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,6 @@ def categories(filename, movies_dir, shows_dir):
500500
file_base = os.path.splitext(clean_filename)[0].lower() # Use splitext instead of split
501501
dir_base = dir_name.lower()
502502

503-
# Log comparison details for debugging
504-
logger.debug(f" Collection matching: File base '{file_base}' vs Dir '{dir_base}'")
505-
506503
# Strategy 1: Direct comparison after removing "Collection"
507504
file_name_norm = file_base.replace("collection", "").strip()
508505
dir_name_norm = dir_base.replace("collection", "").strip()
@@ -511,10 +508,6 @@ def categories(filename, movies_dir, shows_dir):
511508
file_name_clean = re.sub(r'[^\w\s]', '', file_name_norm)
512509
dir_name_clean = re.sub(r'[^\w\s]', '', dir_name_norm)
513510

514-
# Log normalized versions
515-
logger.debug(f" Normalized: File '{file_name_norm}' vs Dir '{dir_name_norm}'")
516-
logger.debug(f" Cleaned: File '{file_name_clean}' vs Dir '{dir_name_clean}'")
517-
518511
# Try multiple matching methods
519512
if (file_name_norm == dir_name_norm or
520513
file_name_norm in dir_name_norm or

0 commit comments

Comments
 (0)