Skip to content

Commit

Permalink
Merge pull request #1 from austinsr1/austinsr1-staging1
Browse files Browse the repository at this point in the history
Update plugin.py
  • Loading branch information
austinsr1 authored Sep 23, 2024
2 parents aba4d2f + 624cedf commit 295c842
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit 295c842

Please sign in to comment.