From ba5a4f50c5cfda61ac81d1d9912c273a04b3bd65 Mon Sep 17 00:00:00 2001 From: KennyG Date: Thu, 2 Apr 2026 10:03:22 -0400 Subject: [PATCH] Update webhook endpoint to new URL format across README, main application, and UI components. Change from `http://localhost:9995/api/hash-service/1` to `http://localhost:9876/api/web-service/` for consistency in configuration settings. --- README.md | 4 ++-- app/main.py | 2 +- ui/src/app/app.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 68002ed..0d2f7f0 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Certain values can be set via environment variables, using the `-e` parameter on * __SUBSCRIPTION_MAX_SEEN_IDS__: Cap on stored video IDs per subscription to limit state file growth. Defaults to `50000`. * __CLEAR_COMPLETED_AFTER__: Number of seconds after which completed (and failed) downloads are automatically removed from the "Completed" list. Defaults to `0` (disabled). * __WEBSERVICE_ENABLED__: If `true`, call a webhook endpoint when a download completes. Defaults to `false`. -* __WEBSERVICE_ENDPOINT__: Full webhook URL to call (for example `http://localhost:9995/api/hash-service/1`). Defaults to `http://localhost:9995/api/hash-service/1`. +* __WEBSERVICE_ENDPOINT__: Full webhook URL to call (for example `"http://localhost:9876/api/web-service/"`). Defaults to `"http://localhost:9876/api/web-service/"`. * __WEBSERVICE_TIMEOUT_SEC__: Timeout (seconds) for webhook requests. Defaults to `20`. ### 📁 Storage & Directories @@ -107,7 +107,7 @@ Example: ```json { "enabled": true, - "endpoint": "http://localhost:9995/api/hash-service/1", + "endpoint": "http://localhost:9876/api/web-service/", "timeout_sec": 20 } ``` diff --git a/app/main.py b/app/main.py index 38910fc..f1dc097 100644 --- a/app/main.py +++ b/app/main.py @@ -71,7 +71,7 @@ class Config: 'LOGLEVEL': 'INFO', 'ENABLE_ACCESSLOG': 'false', 'WEBSERVICE_ENABLED': 'false', - 'WEBSERVICE_ENDPOINT': 'http://localhost:9995/api/hash-service/1', + 'WEBSERVICE_ENDPOINT': 'http://localhost:9876/api/web-service/', 'WEBSERVICE_TIMEOUT_SEC': '20', } diff --git a/ui/src/app/app.ts b/ui/src/app/app.ts index 0c30ecc..d2bb814 100644 --- a/ui/src/app/app.ts +++ b/ui/src/app/app.ts @@ -108,7 +108,7 @@ export class App implements AfterViewInit, OnInit, OnDestroy { metubeVersion: string | null = null; isAdvancedOpen = false; webhookEnabled = false; - webhookEndpoint = 'http://localhost:9995/api/hash-service/1'; + webhookEndpoint = 'http://localhost:9876/api/web-service/'; webhookTimeoutSec = 20; webhookSettingsStatus = ''; webhookTestStatus = ''; @@ -330,7 +330,7 @@ export class App implements AfterViewInit, OnInit, OnDestroy { } const settings = data as WebhookSettings; this.webhookEnabled = !!settings.enabled; - this.webhookEndpoint = String(settings.endpoint || 'http://localhost:9995/api/hash-service/1'); + this.webhookEndpoint = String(settings.endpoint || 'http://localhost:9876/api/web-service/'); this.webhookTimeoutSec = Math.max(1, Number(settings.timeout_sec || 20)); this.webhookSettingsStatus = ''; this.cdr.markForCheck();