From decb32e47e6f9c1731936622d3278ad82435392a Mon Sep 17 00:00:00 2001 From: Michal Orlik Date: Tue, 16 Jan 2024 23:56:19 +0100 Subject: [PATCH] fix(google): add game and correct hashes to title --- src/services/google.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/google.ts b/src/services/google.ts index e105c5b8ea1..e44ccf311fa 100644 --- a/src/services/google.ts +++ b/src/services/google.ts @@ -193,8 +193,8 @@ class Google extends Service { const stream = await this.getBroadcast(); if (stream && stream.snippet) { - const currentTags = (stats.value.currentTags || []).join(' '); - const currentTitle = [stats.value.currentTitle || 'n/a', currentTags].filter(String).join(' '); + const currentTags = (stats.value.currentTags || []).map(o => `#${o}`).join(' '); + const currentTitle = [(stats.value.currentTitle || 'n/a') + ` | ${stats.value.currentGame ?? 'n/a'}`, currentTags].filter(String).join(' | '); if (stream.snippet.title !== currentTitle && isStreamOnline.value) { info(`YOUTUBE: Title is not matching current title, changing by bot to "${currentTitle}"`);