From 60ab526e50e2aa3a3d1be06517d44d5ceebc8e86 Mon Sep 17 00:00:00 2001 From: Nigel Nindo Date: Wed, 18 Oct 2023 12:31:56 +0300 Subject: [PATCH] Also add tennis games from orbit --- src/config/orbit.json | 5 +++++ src/core/parsers/orbit/index.ts | 4 ++++ src/core/parsers/orbit/parser_types.ts | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/config/orbit.json b/src/config/orbit.json index d3ff42f..51581c8 100644 --- a/src/config/orbit.json +++ b/src/config/orbit.json @@ -5,6 +5,11 @@ "name": "Football", "betType": "Three Way", "url": "https://www.orbitxch.com/customer/sport/1" + }, + { + "name": "Tennis", + "betType": "Two Way", + "url": "https://www.orbitxch.com/customer/sport/2" } ] } \ No newline at end of file diff --git a/src/core/parsers/orbit/index.ts b/src/core/parsers/orbit/index.ts index 9f49449..d0a18df 100644 --- a/src/core/parsers/orbit/index.ts +++ b/src/core/parsers/orbit/index.ts @@ -56,6 +56,10 @@ export class OrbitParser extends BaseParser { case BetTypes.THREE_WAY: results2 = processOrbitThreeWayGamesHtml(parsedMessage.rawHtml); break; + case BetTypes.TWO_WAY: + // Thinking that the parser should also work for two way games + results2 = processOrbitThreeWayGamesHtml(parsedMessage.rawHtml); + break; default: const message = "Unknown bet type provided"; logger.error(message, { diff --git a/src/core/parsers/orbit/parser_types.ts b/src/core/parsers/orbit/parser_types.ts index 8c59cd1..3d1a7e5 100644 --- a/src/core/parsers/orbit/parser_types.ts +++ b/src/core/parsers/orbit/parser_types.ts @@ -71,4 +71,4 @@ export function processOrbitThreeWayGamesHtml(html: string): Result