mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
fix(plugin): prepend API prefix for plugin remoteEntry URL
This commit is contained in:
@@ -779,7 +779,7 @@ class PluginManager(ConfigReloadMixin, metaclass=Singleton):
|
|||||||
dist_path = dist_path[1:]
|
dist_path = dist_path[1:]
|
||||||
if dist_path.endswith("/"):
|
if dist_path.endswith("/"):
|
||||||
dist_path = dist_path[:-1]
|
dist_path = dist_path[:-1]
|
||||||
return f"/plugin/file/{plugin_id.lower()}/{dist_path}/remoteEntry.js"
|
return f"{settings.API_V1_STR}/plugin/file/{plugin_id.lower()}/{dist_path}/remoteEntry.js"
|
||||||
|
|
||||||
def get_plugin_remotes(self, pid: Optional[str] = None) -> List[Dict[str, Any]]:
|
def get_plugin_remotes(self, pid: Optional[str] = None) -> List[Dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user