url decode issue fix; channel scan update

This commit is contained in:
david 2025-04-01 19:37:28 -07:00
parent 15f73327ee
commit 865e2019c3
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
FOX 12:207028615:8VSB:49:52:3
ION:521028615:8VSB:49:52:3 ION:521028615:8VSB:49:52:3
KATU:533028615:8VSB:49:52:3 KATU:533028615:8VSB:49:52:3
KOIN-HD:539028615:8VSB:49:52:3 KOIN-HD:539028615:8VSB:49:52:3

View File

@ -38,7 +38,7 @@ export default class HttpServer {
case "PUT": case "PUT":
switch (api) { switch (api) {
case "tune": case "tune":
const channel = query[3]; const channel = decodeURIComponent(query[3]);
const adapter = parseInt(url.searchParams.get('adapter')); const adapter = parseInt(url.searchParams.get('adapter'));
tune(channel, adapter); tune(channel, adapter);
status = 202; status = 202;