add addon name env var

This commit is contained in:
Goldy
2024-07-02 19:32:26 +02:00
parent d2b7ee84bd
commit 81d868ae65
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
ADDON_ID=stremio.comet.fast # for Stremio
ADDON_NAME=Comet # for Stremio
FASTAPI_HOST=0.0.0.0
FASTAPI_PORT=8000
FASTAPI_WORKERS=1 # remove to destroy CPU -> max performances
+1 -1
View File
@@ -40,7 +40,7 @@ async def manifest():
return {
"id": settings.ADDON_ID,
"version": "1.0.0",
"name": "Comet",
"name": settings.ADDON_NAME,
"description": "Stremio's fastest torrent/debrid search add-on.",
"logo": "https://i.imgur.com/jmVoVMu.jpeg",
"background": "https://i.imgur.com/WwnXB3k.jpeg",
+1
View File
@@ -12,6 +12,7 @@ class AppSettings(BaseSettings):
)
ADDON_ID: str = "stremio.comet.fast"
ADDON_NAME: str = "Comet"
FASTAPI_HOST: str = "0.0.0.0"
FASTAPI_PORT: int = 8000
FASTAPI_WORKERS: int = 2 * (os.cpu_count() or 1)