From b9d633927096cd37fc9f2e15849b4718ee4210d3 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 19 Jul 2025 16:23:35 +0200 Subject: [PATCH] Fix track search result type detection The server replaces "_" with "-" in the track result format (at least or Anilist) --- src/modules/tracker/services/Trackers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/tracker/services/Trackers.ts b/src/modules/tracker/services/Trackers.ts index 35be6998..3f4fc469 100644 --- a/src/modules/tracker/services/Trackers.ts +++ b/src/modules/tracker/services/Trackers.ts @@ -57,7 +57,7 @@ export class Trackers { static getPublishingType( trackSearch: TrackSearch, ): PublishingType { - const type = trackSearch.publishingType.toLowerCase().replaceAll(' ', '_'); + const type = trackSearch.publishingType.toLowerCase().replaceAll(/[ |-]/g, '_'); switch (type) { case PublishingType.UNKNOWN: