Skip to content

Commit

Permalink
fix(google): add game and correct hashes to title
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Jan 16, 2024
1 parent 2b0ba7f commit decb32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`);
Expand Down

0 comments on commit decb32e

Please sign in to comment.