Skip to content

Commit e89815f

Browse files
committed
Fix typos.
Signed-off-by: Presti <dxssucuk@hotmail.com>
1 parent 97fc985 commit e89815f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/main/java/de/presti/ree6/main/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,10 @@ public static void main(String[] args) {
346346
getInstance().setNotifier(new Notifier());
347347

348348
if (BotConfig.isModuleActive("notifier")) {
349-
getInstance().getNotifier().getSpotifySonic().load();
350349
ThreadUtil.createThread(x -> {
351350
log.info("Loading Notifier data.");
352351
SQLSession.getSqlConnector().getSqlWorker().getEntityList(new ChannelStats(), "FROM ChannelStats", null).subscribe(channelStats -> {
352+
getInstance().getNotifier().getSpotifySonic().load(channelStats);
353353
getInstance().getNotifier().getYouTubeSonic().load(channelStats);
354354
getInstance().getNotifier().getTwitchSonic().load(channelStats);
355355
getInstance().getNotifier().getInstagramSonic().load(channelStats);

src/main/java/de/presti/ree6/module/notifications/impl/SpotifySonic.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import de.presti.ree6.sql.entities.stats.ChannelStats;
1313
import de.presti.ree6.sql.entities.webhook.WebhookSpotify;
1414
import de.presti.ree6.utils.apis.SpotifyAPIHandler;
15+
import io.sentry.Sentry;
1516
import lombok.extern.slf4j.Slf4j;
1617
import se.michaelthelin.spotify.model_objects.specification.AlbumSimplified;
1718
import se.michaelthelin.spotify.model_objects.specification.ArtistSimplified;
@@ -34,12 +35,13 @@ public class SpotifySonic implements ISonic {
3435

3536
@Override
3637
public void load(List<ChannelStats> channelStats) {
38+
load();
3739
// No need for this.
3840
}
3941

4042
@Override
4143
public void load() {
42-
// Register all YouTube channels.
44+
// Register all Spotify artists and podcasts.
4345
SQLSession.getSqlConnector().getSqlWorker().getEntityList(new WebhookSpotify(), "FROM WebhookSpotify", Map.of()).subscribe(spotifyNotify -> {
4446
spotifyNotify.forEach(x -> {
4547
if (x.getEntityTyp() == 0) {
@@ -101,6 +103,7 @@ public void run() {
101103
}
102104
}
103105
} catch (Exception exception) {
106+
Sentry.captureException(exception);
104107
// TODO:: handle this shit
105108
}
106109
}

0 commit comments

Comments
 (0)