diff --git a/comet/api/core.py b/comet/api/core.py index 1c9f7c8..1dabf54 100644 --- a/comet/api/core.py +++ b/comet/api/core.py @@ -24,7 +24,8 @@ async def health(): indexers = settings.INDEXER_MANAGER_INDEXERS languages = [language for language in PTT.parse.LANGUAGES_TRANSLATION_TABLE.values()] -languages.insert(0, "Multi") +languages.insert(0, "Unknown") +languages.insert(1, "Multi") web_config = { "indexers": [indexer.replace(" ", "_").lower() for indexer in indexers], "languages": languages, diff --git a/comet/api/stream.py b/comet/api/stream.py index 28e8960..637e371 100644 --- a/comet/api/stream.py +++ b/comet/api/stream.py @@ -39,15 +39,16 @@ @streams.get("/stream/{type}/{id}.json") async def stream_noconfig(request: Request, type: str, id: str): - return { - "streams": [ - { - "name": "[⚠️] Comet", - "description": f"{request.url.scheme}://{request.url.netloc}/configure", - "url": "https://comet.fast", - } - ] - } + return { + "streams": [ + { + "name": "[⚠️] Comet", + "description": f"{request.url.scheme}://{request.url.netloc}/configure", + "url": "https://comet.fast", + } + ] + } + @streams.get("/{b64config}/stream/{type}/{id}.json") async def stream(request: Request, b64config: str, type: str, id: str): diff --git a/comet/templates/index.html b/comet/templates/index.html index 8cf5594..2178d15 100644 --- a/comet/templates/index.html +++ b/comet/templates/index.html @@ -598,6 +598,7 @@