feat Fanart开关支持环境变量配置,默认开启

This commit is contained in:
thsrite
2024-01-10 10:13:51 +08:00
parent 8aa1027aae
commit 53a6a1c691
4 changed files with 7 additions and 0 deletions

View File

@ -326,6 +326,8 @@ class FanartModule(_ModuleBase):
:param mediainfo: 识别的媒体信息
:return: 更新后的媒体信息
"""
if not settings.FANART_ENABLE:
return None
if not mediainfo.tmdb_id and not mediainfo.tvdb_id:
return None
if mediainfo.type == MediaType.MOVIE: