Compare commits

...

8 Commits

Author SHA1 Message Date
jxxghp
439b834aa8 更新 version.py 2025-04-02 18:39:50 +08:00
jxxghp
ddbe8324be README增加开发说明 2025-03-30 11:36:19 +08:00
jxxghp
8ffe93113b README增加开发说明 2025-03-30 09:53:34 +08:00
jxxghp
8b31b7cb8a v2.3.6-1
- 修复媒体服务器库存检索问题
- 继续优化搜索页面
2025-03-30 09:23:46 +08:00
jxxghp
e09e21caa9 Merge pull request #4067 from cddjr/fix_media_exists 2025-03-30 02:48:19 +08:00
景大侠
20b145c679 继续修复媒体缺失问题 2025-03-30 02:41:24 +08:00
jxxghp
c5730cf1ad Merge pull request #4065 from cddjr/fix_v235_emby_bug 2025-03-29 23:18:34 +08:00
景大侠
f16b038463 修复v2.3.5引入的emby误报媒体缺失的bug 2025-03-29 23:15:58 +08:00
7 changed files with 40 additions and 8 deletions

View File

@@ -26,6 +26,34 @@
访问官方Wikihttps://wiki.movie-pilot.org
## 参与开发
需要 `Python 3.11``Node JS v20.12.1`
- 克隆主项目 [MoviePilot](https://github.com/jxxghp/MoviePilot)
```shell
git clone https://github.com/jxxghp/MoviePilot
```
- 克隆资源项目 [MoviePilot-Resources](https://github.com/jxxghp/MoviePilot-Resources) ,将 `resources` 目录下对应平台及版本的库 `.so`/`.pyd`/`.bin` 文件复制到 `app/helper` 目录
```shell
git clone https://github.com/jxxghp/MoviePilot-Resources
```
- 安装后端依赖,设置`app`为源代码根目录,运行 `main.py` 启动后端服务,默认监听端口:`3001`API文档地址`http://localhost:3001/docs`
```shell
pip install -r requirements.txt
python3 main.py
```
- 克隆前端项目 [MoviePilot-Frontend](https://github.com/jxxghp/MoviePilot-Frontend)
```shell
git clone https://github.com/jxxghp/MoviePilot-Frontend
```
- 安装前端依赖,运行前端项目,访问:`http://localhost:5173`
```shell
yarn
yarn dev
```
- 参考 [插件开发指引](https://wiki.movie-pilot.org/zh/plugindev) 在 `app/plugins` 目录下开发插件代码
## 贡献者
<a href="https://github.com/jxxghp/MoviePilot/graphs/contributors">

View File

@@ -149,7 +149,7 @@ class EmbyModule(_ModuleBase, _MediaServerBase[Emby]):
else:
servers = self.get_instances().items()
for name, s in servers:
if not server:
if not s:
continue
if mediainfo.type == MediaType.MOVIE:
if itemid:

View File

@@ -150,7 +150,7 @@ class JellyfinModule(_ModuleBase, _MediaServerBase[Jellyfin]):
else:
servers = self.get_instances().items()
for name, s in servers:
if not server:
if not s:
continue
if mediainfo.type == MediaType.MOVIE:
if itemid:

View File

@@ -153,7 +153,7 @@ class PlexModule(_ModuleBase, _MediaServerBase[Plex]):
else:
servers = self.get_instances().items()
for name, s in servers:
if not server:
if not s:
continue
if mediainfo.type == MediaType.MOVIE:
if itemid:

View File

@@ -172,7 +172,7 @@ class TrimeMediaModule(_ModuleBase, _MediaServerBase[TrimeMedia]):
else:
servers = self.get_instances().items()
for name, s in servers:
if not server:
if not s:
continue
if mediainfo.type == MediaType.MOVIE:
if itemid:

View File

@@ -403,10 +403,14 @@ class Api:
)
else:
json_body = None
if params:
queries_unquoted = "&".join([f"{k}={v}" for k, v in params.items()])
else:
queries_unquoted = None
headers = {
"User-Agent": settings.USER_AGENT,
"Authorization": self._token,
"authx": self.__get_authx(api_path, json_body),
"authx": self.__get_authx(api_path, json_body or queries_unquoted),
}
if json_body is not None:
headers["Content-Type"] = "application/json"
@@ -425,4 +429,4 @@ class Api:
logger.error(f"请求接口 {api_path} 失败")
except Exception as e:
logger.error(f"请求接口 {api_path} 异常:" + str(e))
return None
return None

View File

@@ -1,2 +1,2 @@
APP_VERSION = 'v2.3.6'
FRONTEND_VERSION = 'v2.3.6'
APP_VERSION = 'v2.3.7'
FRONTEND_VERSION = 'v2.3.7-1'