feat 媒体库刷新移植为插件

This commit is contained in:
jxxghp
2023-11-01 16:20:15 +08:00
parent 00052efbbc
commit c7a869b750
11 changed files with 159 additions and 70 deletions

View File

@@ -490,9 +490,6 @@ class DirMonitor(_PluginBase):
}
self._medias[mediainfo.title_year + " " + file_meta.season] = media_list
# 汇总刷新媒体库
if settings.REFRESH_MEDIASERVER:
self.chain.refresh_mediaserver(mediainfo=mediainfo, file_path=transferinfo.target_path)
# 广播事件
self.eventmanager.send_event(EventType.TransferComplete, {
'meta': file_meta,