Skip to content

Commit

Permalink
Merge pull request #178 from organization/feature/improve-design
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBrick authored Aug 20, 2023
2 parents 77c002b + 19299a7 commit 7854acf
Show file tree
Hide file tree
Showing 35 changed files with 2,736 additions and 387 deletions.
Binary file added assets/empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon256.ico
Binary file not shown.
Binary file modified assets/icon256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/installerIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/uninstallerIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion common/intl/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

"setting.title.position": "Position",
"setting.title.theme": "Theme",
"setting.title.general": "General",
"setting.title.general": "Allgemein",
"setting.title.game-overlay": "Spiel-Overlay",
"setting.title.about": "Informationen",

Expand Down
2 changes: 1 addition & 1 deletion common/intl/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

"setting.title.position": "位置",
"setting.title.theme": "テーマ",
"setting.title.general": "General",
"setting.title.general": "一般",
"setting.title.game-overlay": "ゲームオーバーレイ",
"setting.title.about": "情報",

Expand Down
12 changes: 9 additions & 3 deletions extensions/alspotron.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// AUTHOR: Khinenw
// DESCRIPTION: Get current playing information to show in Alspotron


(function Alspotron() {
const LyricResolvers = {
v2(uri) {
Expand Down Expand Up @@ -37,12 +36,18 @@
}

const uri = Spicetify.Player.data.track.uri;
let imageUrl = Spicetify.Player.data.track.metadata.image_xlarge_url;
if (imageUrl?.indexOf('localfile') === -1) {
imageUrl = `https://i.scdn.co/image/${imageUrl.substring(imageUrl.lastIndexOf(":") + 1)}`;
}

if (previousInfo.uri !== uri) {
return {
status: 'playing',
title: Spicetify.Player.data.track.metadata.title,
artists: [Spicetify.Player.data.track.metadata.artist_name],
cover_url: uri,
cover_url: imageUrl,
uri: uri,
duration: Spicetify.Player.getDuration(),
progress: Spicetify.Player.getProgress(),
lyrics: await getLyric()
Expand All @@ -51,7 +56,8 @@

return {
status: 'playing',
cover_url: uri,
uri: uri,
cover_url: imageUrl,
duration: Spicetify.Player.getDuration(),
progress: Spicetify.Player.getProgress()
};
Expand Down
Loading

0 comments on commit 7854acf

Please sign in to comment.