Notifiarr / website

Issue tracker for Notifiarr.com
https://notifiarr.com
6 stars 0 forks source link

change event name for qbm #193

Closed notifiarr-bot closed 1 year ago

notifiarr-bot commented 1 year ago

can I make a minor change to empty_recyclebin function? Can you please rename this to cleanup_dirs function instead which would take the exact same payload? I'll be using this for emptying orphaned and instead of sending empty_orphaned I thought it would be better to rename it to cleanup_dirs instead so I can use the same function for both

Origin user: Bobokun Origin message: Discord Server Link Reporting user: nitsua Reporting message: Discord Server Link

bobokun commented 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. image

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
}
austinwbest commented 1 year ago

Done on dev

bobokun commented 1 year ago

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
}