Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore dot files #430

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion source/notify_radarr/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,17 +252,23 @@ def process_files(settings, source_file, destination_files, host_url, api_key):

# Get the basename of the file
for dest_file in destination_files:
# Skip hidden files or specific files like .unmanic
if os.path.basename(dest_file).startswith('.'):
logger.info("Ignoring hidden file: '%s'", dest_file)
continue

if mode == 'update_mode':
update_mode(api, dest_file, rename_files)
elif mode == 'import_mode':
minimum_file_size = settings.get_setting('minimum_file_size')
if check_file_size_under_max_file_size(dest_file, minimum_file_size):
# Ignore this file
logger.info("Ignoring file as it is under configured minimum size file: '%s'", dest_file)
logger.info("Ignoring file as it is under configured minimum size: '%s'", dest_file)
continue
import_mode(api, source_file, dest_file)



def on_postprocessor_task_results(data):
"""
Runner function - provides a means for additional postprocessor functions based on the task success.
Expand Down