From ec8e12b2b5ea90731e750a0641e85257fbc3161c Mon Sep 17 00:00:00 2001 From: vapormusic Date: Thu, 6 Oct 2022 15:35:21 +0000 Subject: [PATCH] chore: Prettified Code [ci skip] --- src/renderer/main/vueapp.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index 039faaf5..67ca4d8d 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -3271,12 +3271,13 @@ const app = new Vue({ const songID = this.mk.nowPlayingItem != null ? this.mk.nowPlayingItem["_songId"] ?? this.mk.nowPlayingItem["songId"] ?? -1 : -1; // this.getMXM( trackName, artistName, 'en', duration); if (songID != -1) { - try{ - let response = await this.mk.api.v3.music(`v1/catalog/${this.mk.storefrontId}/songs/${songID}/lyrics`) - this.lyricsMediaItem = response.data?.data[0]?.attributes["ttml"]; - this.parseTTML(); - } catch (_) - {this.loadMXM();}; + try { + let response = await this.mk.api.v3.music(`v1/catalog/${this.mk.storefrontId}/songs/${songID}/lyrics`); + this.lyricsMediaItem = response.data?.data[0]?.attributes["ttml"]; + this.parseTTML(); + } catch (_) { + this.loadMXM(); + } } else { this.loadMXM(); }