Skip to content

Commit

Permalink
feat: random addon id
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy committed Nov 26, 2024
1 parent ff796be commit 1b6a80b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comet/api/core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import PTT
import RTN
import random
import string

from fastapi import APIRouter, Request
from fastapi.responses import RedirectResponse
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 1b6a80b

Please sign in to comment.