From d2efefff16a88c693149053854b15168cfe7749d Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 16 Jul 2023 08:45:53 +0800 Subject: [PATCH] fix dataclass --- app/core/context.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/core/context.py b/app/core/context.py index 52c63b10..3729d700 100644 --- a/app/core/context.py +++ b/app/core/context.py @@ -58,9 +58,6 @@ class TorrentInfo: def __setattr__(self, name: str, value: Any): self.__dict__[name] = value - def __getattr__(self, name): - return None - def __get_properties(self): """ 获取属性列表 @@ -145,6 +142,8 @@ class MediaInfo: backdrop_path: str = None # 海报图片 poster_path: str = None + # LOGO + logo_path: str = None # 评分 vote_average: int = 0 # 描述 @@ -178,9 +177,6 @@ class MediaInfo: def __setattr__(self, name: str, value: Any): self.__dict__[name] = value - def __getattr__(self, name): - return None - def __get_properties(self): """ 获取属性列表