update
This commit is contained in:
@@ -20,18 +20,6 @@ class VideoResponse(BaseModel):
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
@classmethod
|
||||
def fromModel(cls, video):
|
||||
return cls(
|
||||
id=video.id,
|
||||
title=video.title,
|
||||
youtuber=video.youtuber,
|
||||
thumbnailUrl=video.thumbnailUrl,
|
||||
youtubeUrl=video.youtubeUrl,
|
||||
isDownloaded=video.filePath is not None,
|
||||
profileIds=[p.id for p in video.profiles],
|
||||
)
|
||||
|
||||
|
||||
class CleanupRequest(BaseModel):
|
||||
profileId: int
|
||||
|
||||
Reference in New Issue
Block a user