fix arr api

This commit is contained in:
jxxghp
2023-06-14 15:27:54 +08:00
parent b18d6cabd9
commit 0eb789f711
10 changed files with 157 additions and 72 deletions

View File

@ -5,7 +5,7 @@ from pydantic import BaseModel
class RadarrMovie(BaseModel):
id: Optional[int]
title: Optional[str]
year: Optional[int]
year: Optional[str]
isAvailable: bool = False
monitored: bool = False
tmdbId: Optional[int]
@ -31,7 +31,7 @@ class SonarrSeries(BaseModel):
images: list = []
remotePoster: Optional[str]
seasons: list = []
year: Optional[int]
year: Optional[str]
path: Optional[str]
profileId: Optional[int]
languageProfileId: Optional[int]
@ -39,13 +39,14 @@ class SonarrSeries(BaseModel):
monitored: bool = False
useSceneNumbering: bool = False
runtime: Optional[int]
tmdbId: Optional[int]
imdbId: Optional[str]
tvdbId: Optional[int]
tvRageId: Optional[int]
tvMazeId: Optional[int]
firstAired: Optional[str]
seriesType: Optional[str]
cleanTitle: Optional[str]
imdbId: Optional[str]
titleSlug: Optional[str]
certification: Optional[str]
genres: list = []