Skip to content

Commit 5b78807

Browse files
committed
fix(sources): haloruns game names inconsistency with Twitch
1 parent 15ade43 commit 5b78807

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

background/sources/collections/haloruns.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ export default (callback) => {
2424
let gameSplit = $col2.children[1].textContent.split(' ');
2525
let game = gameSplit.slice(0, -1).join(' ');
2626

27-
// "Halo 5" is actually called "Halo 5: Guardians"
28-
if (game === 'Halo 5') {
27+
// Use Halo game names that Twitch will find.
28+
game = game.replace(/ MCC$/, '');
29+
if (game === 'Halo CE') {
30+
game = 'Halo: Combat Evolved';
31+
} else if (game === 'Halo 5') {
2932
game += ': Guardians';
3033
}
3134
let difficulty = gameSplit[gameSplit.length - 1];

0 commit comments

Comments
 (0)