Skip to content

Commit

Permalink
more exclude tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazzilb08 committed Feb 21, 2024
1 parent f99b532 commit 8b26078
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/nohl.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ def find_no_hl_files(path, exclude_media):
except AttributeError as e:
logger.warning(f"Item '{item}' does not contain a year.")
year = 0
if title in exclude_media:
logger.info(f"Skipping {title} ({year})")
normalized_title = normalize_titles(title)
for item in exclude_media:
normalized_item = normalize_titles(item)
if normalized_title == normalized_item:
logger.info(f"Excluding {title} ({year}) from processing.")
# Creating an asset dictionary to store file information
asset_dict = {
'title': title,
Expand Down Expand Up @@ -743,7 +746,6 @@ def main():

logger.debug(f'{"Exclude Media:":<30}\n{json.dumps(exclude_media, indent=4)}')
logger.debug(create_bar("-"))
print(exclude_media)

# Display the summary of non-hardlinked files in each directory
output_dict = {}
Expand Down

0 comments on commit 8b26078

Please sign in to comment.