]> git.localhorst.tv Git - alttp.git/commitdiff
use slug for SG twitch channels
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 29 May 2024 09:13:32 +0000 (11:13 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 29 May 2024 09:13:32 +0000 (11:13 +0200)
this should fix SGFR

app/Console/Commands/SyncSpeedGaming.php

index 41286ce95f2971ece8ce61877f9540214dd9a6e8..1b4c80e9a3ea1c83153eb2a61f40e5ca0e11a800 100644 (file)
@@ -207,7 +207,7 @@ class SyncSpeedGaming extends Command {
                }
                $channel->short_name = $sgChannel['initials'];
                $channel->title = $sgChannel['name'];
-               $channel->stream_link = 'https://twitch.tv/'.strtolower($sgChannel['name']);
+               $channel->stream_link = 'https://twitch.tv/'.strtolower($sgChannel['slug']);
                $channel->languages = [$sgChannel['language']];
                $channel->save();
                return $channel;