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

@@ -11,7 +11,7 @@ MoviePilot三方插件市场https://github.com/thsrite/MoviePilot-Plugins/
- 站点数据统计 v1.4 (无未读消息版本)(废弃)
- 站点未读消息 v1.9 (依赖于[站点数据统计]插件)
- [云盘Strm生成 v4.3](docs%2FCloudStrm.md)
- [云盘Strm生成 v4.4](docs%2FCloudStrm.md)
- [云盘Strm生成增量版 v1.0](docs%2FCloudStrmIncrement.md)
- [Strm文件模式转换 v1.0](docs%2FStrmConvert.md)
- 清理订阅缓存 v1.0

View File

@@ -3,11 +3,12 @@
"name": "云盘Strm生成",
"description": "监控文件创建生成Strm文件。",
"labels": "云盘",
"version": "4.3",
"version": "4.4",
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/create.png",
"author": "thsrite",
"level": 1,
"history": {
"v4.4": "修复bug",
"v4.3": "回滚自定义媒体类型",
"v4.2": "扩展名转小写",
"v4.1": "支持自定义媒体类型",

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,