qbit_manage/web-ui/js/config-schemas/tracker.js
bobokun ca4819bc0b
4.5.1 (#874)
# Requirements Updated
- qbittorrent-api==2025.7.0
- fastapi==0.116.1


# New Features
- **Uncategorized Category**: Allow multiple paths for Uncategorized
category and add error handling (Thanks to @cat-of-wisdom #849)
- **Config Auto Backup and Cleanup**: implement automatic backup
rotation (30 most recent backups per config) and cleanup
- **Web UI**: add base URL support for reverse proxy deployments (Fixes
#871)
- **Share Limits**: add option to preserve upload speed limits when
minimums unmet (New config option
`reset_upload_speed_on_unmet_minimums`) (Fixes #835, #791)

# Improvements
- Optimize webUI form rendering
- Better centralized error handling for qbitorrent API operations
- **Web UI**: add editable group names to share limit modal

# Bug Fixes
- Fix bug in remove orphaned to notify when there are 0 orphaned files
- Fixes [Bug]: Cannot run on Python 3.9.18 #864
- fix(qbit): add error handling for qBittorrent API operations

**Full Changelog**:
https://github.com/StuffAnThings/qbit_manage/compare/v4.5.0...v4.5.1

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[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>
2025-07-19 08:59:41 -04:00

68 lines
2.9 KiB
JavaScript

export const trackerSchema = {
title: 'Tracker',
description: 'Configure tags and categories based on tracker URLs. Use a keyword from the tracker URL to define rules. The `other` key is a special keyword for trackers that do not match any other entry.',
type: 'complex-object',
patternProperties: {
"^(?!other$).*$": { // Matches any key except 'other'
type: 'object',
properties: {
tag: {
label: 'Tag(s)',
description: 'The tag or tags to apply to torrents from this tracker.',
type: 'array',
items: { type: 'string' }
},
cat: {
type: 'string',
label: 'Category',
description: 'Set a category for torrents from this tracker. This will override any category set by the `cat` section.',
useCategoryDropdown: true // Flag to indicate this field should use category dropdown
},
notifiarr: {
type: 'string',
label: 'Notifiarr React Name',
description: 'The Notifiarr "React Name" for this tracker, used for indexer-specific reactions in notifications.',
}
},
required: ['tag'],
additionalProperties: false
},
"other": { // Special handling for the 'other' key
type: 'object',
properties: {
tag: {
label: 'Tag(s)',
description: 'The tag or tags to apply to torrents from any tracker not explicitly defined elsewhere.',
type: 'array',
items: { type: 'string' }
}
},
required: ['tag'],
additionalProperties: false
}
},
additionalProperties: { // Schema for dynamically added properties (new tracker entries)
type: 'object',
properties: {
tag: {
label: 'Tag(s)',
description: 'The tag or tags to apply to torrents from this tracker.',
type: 'array',
items: { type: 'string' }
},
cat: {
type: 'string',
label: 'Category',
description: 'Set a category for torrents from this tracker. This will override any category set by the `cat` section.',
useCategoryDropdown: true // Flag to indicate this field should use category dropdown
},
notifiarr: {
type: 'string',
label: 'Notifiarr React Name',
description: 'The Notifiarr "React Name" for this tracker, used for indexer-specific reactions in notifications.',
}
},
required: ['tag'],
additionalProperties: false
}
};