mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-06-07 07:26:53 +00:00
fix bug
This commit is contained in:
@@ -26,5 +26,5 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/
|
||||
- [豆瓣明星热映订阅 1.3](docs%2FActorSubscribe.md)
|
||||
- [短剧刮削 2.5](docs%2FShortPlayMonitor.md)
|
||||
- [云盘实时链接 1.1](docs%2FCloudLinkMonitor.md)
|
||||
- [源文件恢复 1.1](docs%2FLinkToSrc.md)
|
||||
- [源文件恢复 1.2](docs%2FLinkToSrc.md)
|
||||
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
|
||||
### 更新记录
|
||||
|
||||
- 1.2 fix bug
|
||||
- 1.1 支持指定需要恢复的硬链接目录
|
||||
- 1.0 根据MoviePilot的转移记录中的硬链文件恢复源文件
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
"LinkToSrc": {
|
||||
"name": "源文件恢复",
|
||||
"description": "根据MoviePilot的转移记录中的硬链文件恢复源文件。",
|
||||
"version": "1.1",
|
||||
"version": "1.2",
|
||||
"icon": "Time_machine_A.png",
|
||||
"author": "thsrite",
|
||||
"level": 1
|
||||
|
||||
@@ -15,7 +15,7 @@ class LinkToSrc(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "Time_machine_A.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.1"
|
||||
plugin_version = "1.2"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -42,7 +42,7 @@ class LinkToSrc(_PluginBase):
|
||||
self.__update_config()
|
||||
|
||||
def _task(self):
|
||||
db_path = Path(Settings.CONFIG_PATH).joinpath('user.db')
|
||||
db_path = Settings().CONFIG_PATH / 'user.db'
|
||||
try:
|
||||
gradedb = sqlite3.connect(db_path)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user