Skip to content

Commit

Permalink
make catalogs optional and change transcode to false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
vanchaxy committed Dec 4, 2024
1 parent e91903d commit 8d00e76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/configurationForm/formSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/configurationForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ const ConfigurationForm: FC<Props> = ({ servers }) => {
const form = useForm<ConfigurationFormType>({
resolver: zodResolver(formSchema),
defaultValues: {
includeTranscodeOriginal: true,
includeTranscodeOriginal: false,
includeTranscodeDown: false,
includePlexTv: false,
sections: [],
},
});

Expand Down
2 changes: 1 addition & 1 deletion plexio/models/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8d00e76

Please sign in to comment.