diff --git a/frontend/src/components/configurationForm/formSchema.tsx b/frontend/src/components/configurationForm/formSchema.tsx index e69fa52..c599d7e 100644 --- a/frontend/src/components/configurationForm/formSchema.tsx +++ b/frontend/src/components/configurationForm/formSchema.tsx @@ -11,8 +11,7 @@ export const formSchema = z.object({ title: z.string(), type: z.string(), }), - ) - .min(1), + ), includeTranscodeOriginal: z.boolean(), includeTranscodeDown: z.boolean(), transcodeDownQualities: z.array(z.string()).optional(), diff --git a/frontend/src/components/configurationForm/index.tsx b/frontend/src/components/configurationForm/index.tsx index a771b6b..fe4de86 100644 --- a/frontend/src/components/configurationForm/index.tsx +++ b/frontend/src/components/configurationForm/index.tsx @@ -29,9 +29,10 @@ const ConfigurationForm: FC = ({ servers }) => { const form = useForm({ resolver: zodResolver(formSchema), defaultValues: { - includeTranscodeOriginal: true, + includeTranscodeOriginal: false, includeTranscodeDown: false, includePlexTv: false, + sections: [], }, }); diff --git a/plexio/models/addon.py b/plexio/models/addon.py index e0033a5..0247e06 100644 --- a/plexio/models/addon.py +++ b/plexio/models/addon.py @@ -16,7 +16,7 @@ class AddonConfiguration(BaseModel): streaming_url: URL server_name: str version: str = '0.0.1' - sections: list[PlexLibrarySection] + sections: list[PlexLibrarySection] = Field(default_factory=list) include_transcode_original: bool = False include_transcode_down: bool = False transcode_down_qualities: list[Resolution] = Field(default_factory=list)