mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-09-06 21:24:28 +08:00
# Requirements Updated - "GitPython==3.1.45" - "retrying==1.4.1", # New Features - **Remove Orphaned**: Adds new `min_file_age_minutes` flag to prevent files newer than a certain time from being deleted (Thanks to @H2OKing89 #859) - Adds new standalone script `ban_peers.py` for banning selected peers (Thanks to @tboy1337 #888) # Improvements - Adds timeout detectiono for stuck runs for web API rqeeusts # Bug Fixes - Fix bug in webUI deleting nohardlink section (Fixes #884) **Full Changelog**: https://github.com/StuffAnThings/qbit_manage/compare/v4.5.1...v4.5.2 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: cat-of-wisdom <217637421+cat-of-wisdom@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Quentin <qking.dev@gmail.com> Co-authored-by: ineednewpajamas <73252768+ineednewpajamas@users.noreply.github.com> Co-authored-by: tboy1337 <30571311+tboy1337@users.noreply.github.com> Co-authored-by: tboy1337 <tboy1337.unchanged733@aleeas.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
36 lines
1.6 KiB
JavaScript
36 lines
1.6 KiB
JavaScript
export const orphanedSchema = {
|
|
title: 'Orphaned Files',
|
|
description: 'Configure settings for managing orphaned files, which are files in your root directory not associated with any torrent.',
|
|
fields: [
|
|
{
|
|
name: 'empty_after_x_days',
|
|
type: 'number',
|
|
label: 'Empty After X Days',
|
|
description: 'Delete orphaned files after they have been in the orphaned directory for this many days. Set to 0 for immediate deletion, or leave empty to never delete.',
|
|
min: 0
|
|
},
|
|
{
|
|
name: 'exclude_patterns',
|
|
type: 'array',
|
|
label: 'Exclude Patterns',
|
|
description: 'A list of glob patterns to exclude files from being considered orphaned (e.g., "**/.DS_Store").',
|
|
items: { type: 'text' }
|
|
},
|
|
{
|
|
name: 'max_orphaned_files_to_delete',
|
|
type: 'number',
|
|
label: 'Max Orphaned Files to Delete',
|
|
description: 'The maximum number of orphaned files to delete in a single run. This is a safeguard to prevent accidental mass deletions. Set to -1 to disable.',
|
|
default: 50,
|
|
min: -1
|
|
},
|
|
{
|
|
name: 'min_file_age_minutes',
|
|
type: 'number',
|
|
label: 'Minimum File Age (Minutes)',
|
|
description: 'Minimum age in minutes for files to be considered orphaned. Files newer than this will be protected from deletion to prevent removal of actively uploading files. Set to 0 to disable age protection.',
|
|
default: 0,
|
|
min: 0
|
|
}
|
|
]
|
|
};
|