This commit is contained in:
thsrite
2024-06-23 22:05:25 +08:00
parent 50ddb5f0cd
commit 7f447fda16
3 changed files with 8 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ from apscheduler.triggers.cron import CronTrigger
from app.log import logger
from app.plugins import _PluginBase
from app.core.config import settings, Settings
from app.core.config import settings
class CloudStrm(_PluginBase):
@@ -26,7 +26,7 @@ class CloudStrm(_PluginBase):
# 插件图标
plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/create.png"
# 插件版本
plugin_version = "4.3"
plugin_version = "4.4"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -233,7 +233,7 @@ class CloudStrm(_PluginBase):
continue
# 不复制非媒体文件时直接过滤掉非媒体文件
if not self._copy_files and Path(file).suffix.lower() not in Settings.RMT_MEDIAEXT:
if not self._copy_files and Path(file).suffix.lower() not in settings.RMT_MEDIAEXT:
continue
if source_file not in self.__cloud_files:
@@ -280,7 +280,7 @@ class CloudStrm(_PluginBase):
continue
# 不复制非媒体文件时直接过滤掉非媒体文件
if not self._copy_files and Path(file).suffix.lower() not in Settings.RMT_MEDIAEXT:
if not self._copy_files and Path(file).suffix.lower() not in settings.RMT_MEDIAEXT:
continue
logger.info(f"扫描到新文件 {source_file},正在开始处理")
@@ -343,7 +343,7 @@ class CloudStrm(_PluginBase):
os.makedirs(Path(dest_file).parent)
# 视频文件创建.strm文件
if Path(dest_file).suffix.lower() in Settings.RMT_MEDIAEXT:
if Path(dest_file).suffix.lower() in settings.RMT_MEDIAEXT:
# 创建.strm文件
self.__create_strm_file(scheme="https" if self._https else "http",
dest_file=dest_file,