fix context

This commit is contained in:
jxxghp
2023-08-04 16:56:27 +08:00
parent 541a8d725d
commit 7103eebf8e
3 changed files with 23 additions and 1 deletions

View File

@ -551,6 +551,24 @@ class MediaInfo:
dicts["title_year"] = self.title_year
return dicts
def clear(self):
"""
去除多余数据,减小体积
"""
self.tmdb_info = {}
self.douban_info = {}
self.seasons = {}
self.genres = []
self.season_info = []
self.names = []
self.actors = []
self.directors = []
self.production_companies = []
self.production_countries = []
self.spoken_languages = []
self.networks = []
self.next_episode_to_air = {}
@dataclass
class Context: