mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
fix(plugin): return remoteEntry path without API prefix to avoid double prefix 404
- get_plugin_remote_entry returns /plugin/file/... (relative to API root) - Frontend already prepends API base; adding API_V1_STR caused /api/v1/api/v1/... Made-with: Cursor
This commit is contained in:
@@ -777,9 +777,7 @@ class PluginManager(ConfigReloadMixin, metaclass=Singleton):
|
||||
:return: 远程入口地址
|
||||
"""
|
||||
dist_path = dist_path.strip("/")
|
||||
api_prefix = settings.API_V1_STR.rstrip("/")
|
||||
path = posixpath.join(
|
||||
api_prefix,
|
||||
"plugin",
|
||||
"file",
|
||||
plugin_id.lower(),
|
||||
|
||||
Reference in New Issue
Block a user