Closed notifiarr-bot closed 1 year ago
If the event name will change to cleanup_dirs
I think I would need to send you an additional field location
so you can use it in the title.
Example payload:
{
'function': 'cleanup_dirs',
'location': 'Orphaned Data',
'title': 'Emptying Orphaned Data (Files > 30 days)',
'body': 'Searching: /data/torrents/orphaned_data\nSearching: /data/torrents/orphaned_data/orphaned_test/orphaned_data\nSearching: /data/torrents/orphaned_data\nDeleted supermicro serial number guide.pdf from /data/torrents/orphaned_data (Last modified 197 days ago).\nDeleted 1 files (1.380MiB) from the Orphaned Data.',
'files': ['supermicro serial number guide.pdf'],
'empty_after_x_days': 30,
'size_in_bytes': 1447013
}
Done on dev
Sorry I forgot one more change....in the function run_end
I've added an additional stat. files_deleted_from_orphaned
Example payload:
{
'function': 'run_end',
'title': None ,
'body': 'Finished Run\nRun Time: 0:01:30',
'start_time': '2022-09-25 21:42:06',
'end_time': '2022-09-25 21:43:36',
'next_run': (redacted),
'run_time': '0:01:30',
'torrents_added': 0,
'torrents_deleted': 0,
'torrents_deleted_and_contents_count': 0,
'torrents_resumed': 0,
'torrents_rechecked': 0,
'torrents_categorized': 0,
'torrents_tagged': 0,
'remove_unregistered': 0,
'torrents_tagged_tracker_error': 0,
'torrents_untagged_tracker_error': 0,
'orphaned_files_found': 0,
'torrents_tagged_no_hardlinks': 0,
'torrents_untagged_no_hardlinks': 0,
'files_deleted_from_recyclebin': 0,
'files_deleted_from_orphaned': 0
}
can I make a minor change to
empty_recyclebin
function? Can you please rename this tocleanup_dirs
function instead which would take the exact same payload? I'll be using this for emptying orphaned and instead of sendingempty_orphaned
I thought it would be better to rename it tocleanup_dirs
instead so I can use the same function for bothOrigin user: Bobokun Origin message: Discord Server Link Reporting user: nitsua Reporting message: Discord Server Link