Skip to content

Commit

Permalink
always show full title (too uninclusive before)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe-H committed Dec 14, 2020
1 parent e1529cf commit 4f11603
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
13 changes: 1 addition & 12 deletions src/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,7 @@ ipcRenderer.on("init-playing-reply", (event, data) => {
switch (data.body.currently_playing_type) {
case "track": // For track (not podcast)
var thisName = data.body.item.name;
if (
thisName.includes("Remix") ||
thisName.includes("Mix") ||
thisName.includes("Version") ||
thisName.includes("Live") ||
thisName.includes("Ver.") ||
thisName.includes("ver.")
) {
document.getElementById("song").innerHTML = data.body.item.name.split(/\[/)[0];
} else {
document.getElementById("song").innerHTML = data.body.item.name.split(/[\[(-]/)[0];
}; // Special title cases
document.getElementById("song").innerHTML = thisName;
var progress = `${(data.body.progress_ms / data.body.item.duration_ms) * -100 + 100}`;
$("#progressbar").animate({'right': `${progress}%`}, 400, 'linear');
myBg = `<img src="${data.body.item.album.images[0].url}">`;
Expand Down
4 changes: 2 additions & 2 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@

@keyframes slideOutOptions {
0% {bottom: 0px}
100% {bottom: -160px}
100% {bottom: -165px}
}

@keyframes slideInOptions {
0% {bottom: -160px}
0% {bottom: -165px}
100% {bottom: 0px}
}

Expand Down

0 comments on commit 4f11603

Please sign in to comment.