mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-07 18:48:00 +08:00
feat: complete qbittorrent support
This commit is contained in:
@@ -32,10 +32,12 @@ func init() {
|
||||
downloadclientsDescSettings := downloadclientsFields[6].Descriptor()
|
||||
// downloadclients.DefaultSettings holds the default value on creation for the settings field.
|
||||
downloadclients.DefaultSettings = downloadclientsDescSettings.Default.(string)
|
||||
// downloadclientsDescPriority is the schema descriptor for priority field.
|
||||
downloadclientsDescPriority := downloadclientsFields[7].Descriptor()
|
||||
// downloadclients.DefaultPriority holds the default value on creation for the priority field.
|
||||
downloadclients.DefaultPriority = downloadclientsDescPriority.Default.(string)
|
||||
// downloadclientsDescOrdering is the schema descriptor for ordering field.
|
||||
downloadclientsDescOrdering := downloadclientsFields[7].Descriptor()
|
||||
// downloadclients.DefaultOrdering holds the default value on creation for the ordering field.
|
||||
downloadclients.DefaultOrdering = downloadclientsDescOrdering.Default.(int)
|
||||
// downloadclients.OrderingValidator is a validator for the "ordering" field. It is called by the builders before save.
|
||||
downloadclients.OrderingValidator = downloadclientsDescOrdering.Validators[0].(func(int) error)
|
||||
// downloadclientsDescRemoveCompletedDownloads is the schema descriptor for remove_completed_downloads field.
|
||||
downloadclientsDescRemoveCompletedDownloads := downloadclientsFields[8].Descriptor()
|
||||
// downloadclients.DefaultRemoveCompletedDownloads holds the default value on creation for the remove_completed_downloads field.
|
||||
|
||||
Reference in New Issue
Block a user