- 站点新增支持Rousi、蝴蝶、OpenCD
- 电影搜索增加了纪录片类型 - 支持设置自建OCR识别服务地址 - 下载器监控、手动整理按文件登记历史记录 - 新增了下载器文件同步插件,可将非MoviePilot添加下载的任务文件导入数据库,以便删除文件时联动删除下载任务 - 整理历史记录支持批量操作 - 播放限速插件支持智能限速 - 刮削海报优先使用TMDB图片 - 修复了憨憨站点数据统计 - 修复了过滤规则无法清空的问题 - 修复了自定义订阅已处理状态计算的问题 - 修复了Slack消息过长导致发送失败的问题 - 修复了动漫独立目录时出现两级目录的问题 - 调整了暗黑主题的UI配色
This commit is contained in:
parent
1c7715d94c
commit
7307105dcd
@ -74,7 +74,8 @@ def delete_transfer_history(history_in: schemas.TransferHistory,
|
|||||||
if not history:
|
if not history:
|
||||||
return schemas.Response(success=False, msg="记录不存在")
|
return schemas.Response(success=False, msg="记录不存在")
|
||||||
# 册除文件
|
# 册除文件
|
||||||
TransferChain(db).delete_files(Path(history.dest))
|
if history.dest:
|
||||||
|
TransferChain(db).delete_files(Path(history.dest))
|
||||||
# 删除记录
|
# 删除记录
|
||||||
TransferHistory.delete(db, history_in.id)
|
TransferHistory.delete(db, history_in.id)
|
||||||
return schemas.Response(success=True)
|
return schemas.Response(success=True)
|
||||||
|
@ -252,6 +252,12 @@ class MediaInfo:
|
|||||||
"""
|
"""
|
||||||
setattr(self, f"{name}_path", image)
|
setattr(self, f"{name}_path", image)
|
||||||
|
|
||||||
|
def get_image(self, name: str):
|
||||||
|
"""
|
||||||
|
获取图片地址
|
||||||
|
"""
|
||||||
|
return getattr(self, f"{name}_path")
|
||||||
|
|
||||||
def set_category(self, cat: str):
|
def set_category(self, cat: str):
|
||||||
"""
|
"""
|
||||||
设置二级分类
|
设置二级分类
|
||||||
|
@ -47,7 +47,10 @@ class FanartModule(_ModuleBase):
|
|||||||
continue
|
continue
|
||||||
# 按欢迎程度倒排
|
# 按欢迎程度倒排
|
||||||
images.sort(key=lambda x: int(x.get('likes', 0)), reverse=True)
|
images.sort(key=lambda x: int(x.get('likes', 0)), reverse=True)
|
||||||
mediainfo.set_image(self.__name(name), images[0].get('url'))
|
# 图片属性xx_path
|
||||||
|
image_name = self.__name(name)
|
||||||
|
if not mediainfo.get_image(image_name):
|
||||||
|
mediainfo.set_image(image_name, images[0].get('url'))
|
||||||
|
|
||||||
return mediainfo
|
return mediainfo
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
APP_VERSION = 'v1.0.10'
|
APP_VERSION = 'v1.1.0'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user