From 1b6a80bbe5800771774adeb469d861919dc3f70d Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:30:39 +0100 Subject: [PATCH] feat: random addon id --- comet/api/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/comet/api/core.py b/comet/api/core.py index 1dabf54..dc7b458 100644 --- a/comet/api/core.py +++ b/comet/api/core.py @@ -1,5 +1,7 @@ import PTT import RTN +import random +import string from fastapi import APIRouter, Request from fastapi.responses import RedirectResponse @@ -61,7 +63,7 @@ async def manifest(b64config: str = None): debrid_extension = get_debrid_extension(config["debridService"]) return { - "id": settings.ADDON_ID, + "id": f"{settings.ADDON_ID}.{''.join(random.choice(string.ascii_letters) for _ in range(4))}", "name": f"{settings.ADDON_NAME}{(' | ' + debrid_extension) if debrid_extension is not None else ''}", "description": "Stremio's fastest torrent/debrid search add-on.", "version": "1.0.0",