jxxghp
2024-05-28 15:43:27 +08:00
parent 08861011f4
commit 375ec21730
2 changed files with 11 additions and 8 deletions

View File

@@ -113,10 +113,13 @@
"name": "媒体库刮削",
"description": "定时对媒体库进行刮削,补齐缺失元数据和图片。",
"labels": "刮削",
"version": "1.4",
"version": "1.4.1",
"icon": "scraper.png",
"author": "jxxghp",
"level": 1
"level": 1,
"history": {
"v1.4.1": "修复nfo文件读取失败时任务中断问题"
}
},
"TorrentRemover": {
"name": "自动删种",

View File

@@ -25,7 +25,7 @@ class LibraryScraper(_PluginBase):
# 插件图标
plugin_icon = "scraper.png"
# 插件版本
plugin_version = "1.4"
plugin_version = "1.4.1"
# 插件作者
plugin_author = "jxxghp"
# 作者主页
@@ -410,14 +410,14 @@ class LibraryScraper(_PluginBase):
"uniqueid[@type='TMDB']",
"tmdbid"
]
reader = NfoReader(file_path)
for xpath in xpaths:
try:
try:
reader = NfoReader(file_path)
for xpath in xpaths:
tmdbid = reader.get_element_value(xpath)
if tmdbid:
return tmdbid
except Exception as err:
print(str(err))
except Exception as err:
logger.warn(f"从nfo文件中获取tmdbid失败{str(err)}")
return None
def stop_service(self):