summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:54 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:54 +0100
commitc2a38a4847dfa9f561717cfc9858c275caa33876 (patch)
tree149bb7626f4495558c781fbcd621434e3cf7e6df
parentca4588f1b8200ef93e1614f2274a960bbb9fd53e (diff)
downloadmist-c2a38a4847dfa9f561717cfc9858c275caa33876.tar.gz
mist-c2a38a4847dfa9f561717cfc9858c275caa33876.tar.bz2
mist-c2a38a4847dfa9f561717cfc9858c275caa33876.zip
Updated 14 files and added 2 files (automated)
-rw-r--r--.DS_Storebin18436 -> 20484 bytes
-rw-r--r--app/.DS_Storebin6148 -> 6148 bytes
-rw-r--r--app/index.php17
-rw-r--r--app/ui/listing.php34
-rw-r--r--app/ui/player-mobile.php8
-rw-r--r--app/ui/player.php8
-rw-r--r--app/ui/settings.php17
-rw-r--r--app/ui/stella.php7
-rw-r--r--assets/.DS_Storebin10244 -> 10244 bytes
-rw-r--r--assets/icons/stella-full.svg43
-rw-r--r--assets/icons/stella.svg18
-rw-r--r--assets/js/normalizer.js17
-rw-r--r--assets/styles.css14
-rw-r--r--includes/session.php1
-rw-r--r--oauth/.DS_Storebin6148 -> 6148 bytes
-rw-r--r--version2
16 files changed, 161 insertions, 25 deletions
diff --git a/.DS_Store b/.DS_Store
index fab33f5..29e4bfc 100644
--- a/.DS_Store
+++ b/.DS_Store
Binary files differ
diff --git a/app/.DS_Store b/app/.DS_Store
index 251444b..b01224a 100644
--- a/app/.DS_Store
+++ b/app/.DS_Store
Binary files differ
diff --git a/app/index.php b/app/index.php
index 72ca74b..31ca9aa 100644
--- a/app/index.php
+++ b/app/index.php
@@ -208,6 +208,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $_PROFI
if (!name || typeof name !== "string") name = window.name;
if (name === "lyrics") showLyrics();
if (name === "search") name = "home";
+ if (name === "stella") name = "settings";
Array.from(document.getElementById("navigation").contentDocument.getElementsByClassName("navigation-item")).map(i => i.classList.remove("active"));
document.getElementById("navigation").contentDocument.getElementById(name).classList.add("active");
} catch (e) {
@@ -250,6 +251,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $_PROFI
localStorage.setItem("normalize", "true");
}
+ if (!localStorage.getItem("overamp")) {
+ localStorage.setItem("overamp", "false");
+ }
+
if (!localStorage.getItem("desktop-notification")) {
localStorage.setItem("desktop-notification", "true");
}
@@ -939,9 +944,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $_PROFI
if (stellaCompatible) {
window.preloaded[id] = await Stella.build("/assets/content/" + id + ".stella");
- window.preloadedGains[id] = await normalizeAudio(window.preloaded[id].stems.vocals.buffer, 0);
- window.preloadedGainsBoosted1[id] = await normalizeAudio(window.preloaded[id].stems.vocals.buffer, .05);
- window.preloadedGainsBoosted2[id] = await normalizeAudio(window.preloaded[id].stems.vocals.buffer, .1);
+ window.preloadedGains[id] = await normalizeAudio(window.preloaded[id].stems.vocals.buffer, 0, true);
+ window.preloadedGainsBoosted1[id] = await normalizeAudio(window.preloaded[id].stems.vocals.buffer, .05, true);
+ window.preloadedGainsBoosted2[id] = await normalizeAudio(window.preloaded[id].stems.vocals.buffer, .1, true);
} else {
if (!window.preloaded[id]) {
window.buffering = true;
@@ -1075,9 +1080,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $_PROFI
if (stellaCompatible) {
window.preloaded[id] = await Stella.build("/assets/content/" + id + ".stella");
- window.preloadedGains[id] = await normalizeAudio(window.preloaded[id].stems.other.buffer, 0);
- window.preloadedGainsBoosted1[id] = await normalizeAudio(window.preloaded[id].stems.other.buffer, .05);
- window.preloadedGainsBoosted2[id] = await normalizeAudio(window.preloaded[id].stems.other.buffer, .1);
+ window.preloadedGains[id] = await normalizeAudio(window.preloaded[id].stems.other.buffer, 0, true);
+ window.preloadedGainsBoosted1[id] = await normalizeAudio(window.preloaded[id].stems.other.buffer, .05, true);
+ window.preloadedGainsBoosted2[id] = await normalizeAudio(window.preloaded[id].stems.other.buffer, .1, true);
} else {
if (!window.preloaded[id]) {
if (localStorage.getItem("data-saving") === "true") {
diff --git a/app/ui/listing.php b/app/ui/listing.php
index d29b355..29a1bce 100644
--- a/app/ui/listing.php
+++ b/app/ui/listing.php
@@ -37,6 +37,27 @@ if (!$presetList) {
}
}
+if (!isset($onlyStella)) $onlyStella = false;
+
+if ($onlyStella) {
+ $hasAlbum = false;
+ $list = $songs;
+
+ foreach ($albums as $id => $album) {
+ foreach ($album["tracks"] as $track) {
+ $list[$track]["_albumID"] = $id;
+ }
+ }
+
+ uasort($list, function ($a, $b) {
+ return strcmp($a["title"], $b["title"]);
+ });
+
+ $list = array_filter($list, function ($i) {
+ return file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/content/" . $i . ".stella");
+ }, ARRAY_FILTER_USE_KEY);
+}
+
?>
<!doctype html>
<html lang="en">
@@ -55,6 +76,8 @@ if (!$presetList) {
Favorites
<?php elseif ($hasAlbum): ?>
<?= $albums[$_GET["a"]]["title"] ?>
+ <?php elseif ($onlyStella): ?>
+ Mist Stella
<?php else: ?>
Songs
<?php endif; ?>
@@ -74,7 +97,7 @@ if (!$presetList) {
<div id="ui-back-button" onclick="history.back();" style="display: flex; align-items: center; justify-content: center; text-align: center;<?php if (!$hasAlbum): ?>pointer-events: none; opacity: 0;<?php endif; ?>">
<img src="/assets/icons/back.svg" alt="Back" class="icon">
</div>
- <div style="display: flex; align-items: center; justify-content: center; text-align: center;"><b><?php if (!$hasAlbum && !isset($favoritesList)): ?>Songs<?php endif; ?></b></div>
+ <div style="display: flex; align-items: center; justify-content: center; text-align: center;"><b><?php if (!$hasAlbum && !isset($favoritesList) && !$onlyStella): ?>Songs<?php elseif ($onlyStella): ?>Mist Stella<?php endif; ?></b></div>
<?php if (!$hasAlbum): ?>
<div>
<input placeholder="Filter" id="filter" class="form-control" style="width: 256px;height: 32px;border-top: none;" onchange="updateFilter();" onkeyup="updateFilter();">
@@ -145,9 +168,16 @@ if (!$presetList) {
<img src='/assets/icons/lossless.svg' alt='' class='icon player-badge-icon'>Hi-Res Lossless
<?php if ($albums[$_GET["a"]]["stella"]): ?><span class="mist-stella"> ยท </span><?php endif; ?>
<?php endif; if ($albums[$_GET["a"]]["stella"]): ?>
- <span class="mist-stella"><img src='/assets/icons/stella.svg' alt='' style="height: 14.4px !important; width: 14.4px !important;" class='icon player-badge-icon'>Mist Stella</span>
+ <span class="mist-stella"><img src='/assets/icons/stella.svg' alt='' style="height: 14.4px !important; width: 14.4px !important;" class='icon player-badge-icon'><img src='/assets/icons/stella-full.svg' alt='' class='mist-stella-text icon player-badge-icon'></span>
<?php endif; ?>
</div>
+ <style>
+ .mist-stella-text {
+ width: 68px !important;
+ position: relative !important;
+ top: -1px !important;
+ }
+ </style>
</div>
<div id="album-info-buttons" <?php if (!in_array($_GET["a"], $library)): ?>class="nolibrary"<?php endif; ?>>
<?php if (in_array($_GET["a"], $library)): ?>
diff --git a/app/ui/player-mobile.php b/app/ui/player-mobile.php
index e49e852..80c39d4 100644
--- a/app/ui/player-mobile.php
+++ b/app/ui/player-mobile.php
@@ -138,7 +138,13 @@
</span>
<span id="badge-stella" style="display: block;border: 1px solid transparent;color: rgba(255, 255, 255, .5);background-color: rgba(255, 255, 255, .1);padding: 2px 5px;border-radius: 5px;font-size: 12px;position: fixed;margin-left: auto;margin-right: auto;width: max-content;left: 0;right: 0;bottom: calc(120px + var(--android-navigation-bar));">
<span style="display: grid; grid-template-columns: max-content max-content">
- <span><img src="/assets/icons/stella.svg" alt="" class="player-badge-icon" style="height: 14.4px; width: 14.4px !important; filter: invert(1); opacity: .5;">Mist Stella</span>
+ <span><img src="/assets/icons/stella.svg" alt="" class="player-badge-icon" style="height: 14.4px; width: 14.4px !important; filter: invert(1); opacity: .5;"><img src='/assets/icons/stella-full.svg' class='stella-logo-full'></span>
+ <style>
+ .stella-logo-full {
+ height: 12px;
+ filter: invert(1);
+ }
+ </style>
</span>
</span>
</div>
diff --git a/app/ui/player.php b/app/ui/player.php
index 4c5298c..47526f5 100644
--- a/app/ui/player.php
+++ b/app/ui/player.php
@@ -97,7 +97,13 @@
<div>
<span class="player-badge-desktop" data-bs-html="true" data-bs-toggle="tooltip" id="badge-cd" style="z-index: 9999; display: none;position: absolute;margin-left: 71px;"><img src="/assets/icons/lossless.svg" alt="" style="height: 12px;opacity: .5;" class="icon"></span>
<span class="player-badge-desktop" data-bs-html="true" data-bs-toggle="tooltip" id="badge-hires" style="z-index: 9999; display: none;position: absolute;margin-left: 71px;"><img src="/assets/icons/lossless.svg" alt="" style="height: 12px;opacity: .5;" class="icon"></span>
- <span class="player-badge-desktop" data-bs-html="true" title="<b>Mist Stella</b>" data-bs-toggle="tooltip" id="badge-stella" style="z-index: 9999; display: none;position: absolute;margin-left: 71px;"><img src="/assets/icons/stella.svg" alt="" style="height: 12px;opacity: .5;" class="icon"></span>
+ <span class="player-badge-desktop" data-bs-html="true" title="<img src='/assets/icons/stella-full.svg' class='stella-logo-full'>" data-bs-toggle="tooltip" id="badge-stella" style="z-index: 9999; display: none;position: absolute;margin-left: 71px;"><img src="/assets/icons/stella.svg" alt="" style="height: 12px;opacity: .5;" class="icon"></span>
+ <style>
+ .stella-logo-full {
+ height: 12px;
+ filter: invert(1);
+ }
+ </style>
<div id="info" style="display: none; grid-template-columns: 64px 1fr; height: 64px; border-left: 1px solid rgba(0, 0, 0, .25); border-right: 1px solid rgba(0, 0, 0, .25);">
<img alt="" id="album-art" style="background-color: rgba(0, 0, 0, .1); height: 64px; width: 64px;">
<div id="info-grid" style="z-index: 9; display: grid; grid-template-rows: 2px 22px 22px 12px 6px;">
diff --git a/app/ui/settings.php b/app/ui/settings.php
index fe421a0..26217f0 100644
--- a/app/ui/settings.php
+++ b/app/ui/settings.php
@@ -45,6 +45,21 @@
</script>
<div class="form-check form-switch" style="margin-top: 10px;">
+ <input onchange="saveOA();" class="form-check-input" type="checkbox" role="switch" id="noamp">
+ <label class="form-check-label" for="noamp">
+ Disable audio amplification
+ <div class="text-muted small">By default, Mist makes your music louder, so it doesn't otherwise seem too quiet. If you have issues with clipping, or this feature does not otherwise play nicely with your device, you might want to turn on this option.</div>
+ </label>
+ </div>
+ <script>
+ if (localStorage.getItem("noamp") === "true") document.getElementById("noamp").checked = true;
+ function saveOA() {
+ localStorage.setItem("noamp", document.getElementById("noamp").checked ? "true" : "false");
+ window.parent.location.reload();
+ }
+ </script>
+
+ <div class="form-check form-switch" style="margin-top: 10px;">
<input onchange="saveN();" class="form-check-input" type="checkbox" role="switch" id="normalize">
<label class="form-check-label" for="normalize">
Normalize loudness
@@ -63,7 +78,7 @@
<input onchange="saveST();" class="form-check-input" type="checkbox" role="switch" id="enable-stella">
<label class="form-check-label" for="enable-stella">
Mist Stella
- <div class="text-muted small">Enjoy your music is a unique way thanks to the Mist Stella spatial audio technology. Stella makes your music feel like it's coming from all around you, giving you a concert-like experience. Note that Stella uses slightly more bandwidth than lossless streaming.</div>
+ <div class="text-muted small">Enjoy your music is a unique way thanks to the Mist Stella spatial audio technology. Stella makes your music feel like it's coming from all around you, giving you a concert-like experience. Note that Stella uses slightly more bandwidth than lossless streaming. <a href="#" onclick="window.parent.location.hash = '#/stella';">See compatible songs.</a></div>
</label>
</div>
<script>
diff --git a/app/ui/stella.php b/app/ui/stella.php
new file mode 100644
index 0000000..143a172
--- /dev/null
+++ b/app/ui/stella.php
@@ -0,0 +1,7 @@
+<?php
+
+header("X-Frame-Options: SAMEORIGIN");
+unset($_GET["a"]);
+$onlyStella = true;
+global $onlyStella;
+require_once "./listing.php"; \ No newline at end of file
diff --git a/assets/.DS_Store b/assets/.DS_Store
index 1026c09..b5223c8 100644
--- a/assets/.DS_Store
+++ b/assets/.DS_Store
Binary files differ
diff --git a/assets/icons/stella-full.svg b/assets/icons/stella-full.svg
new file mode 100644
index 0000000..55f3f5a
--- /dev/null
+++ b/assets/icons/stella-full.svg
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 409.4 69.2" style="enable-background:new 0 0 409.4 69.2;" xml:space="preserve">
+<g>
+ <path d="M0,67.6V0h0.1l36.1,51.2l-5.5-1.2L66.7,0h0.2v67.6H54.1V28.8l0.8,6.6l-22,31.2h-0.2L10.1,35.5l2.2-6.1v38.2H0z"/>
+ <path d="M81.3,15.3c0-1.8,0.7-3.3,2.2-4.5c1.4-1.2,3-1.8,4.6-1.8c1.6,0,3.2,0.6,4.5,1.8c1.4,1.2,2.1,2.7,2.1,4.5
+ c0,1.8-0.7,3.3-2.1,4.5c-1.4,1.1-2.9,1.7-4.5,1.7c-1.6,0-3.2-0.6-4.6-1.7C82,18.7,81.3,17.2,81.3,15.3z M81.6,29h12.3v38.5H81.6V29
+ z"/>
+ <path d="M119.2,68.4c-3.2,0-6.1-0.6-8.9-1.7s-5-2.7-6.9-4.7l5.1-6.8c1.9,1.7,3.6,2.9,5.2,3.7c1.6,0.7,3.1,1.1,4.4,1.1
+ c1,0,1.9-0.1,2.7-0.3c0.8-0.2,1.4-0.5,1.9-1c0.5-0.4,0.7-1,0.7-1.7c0-1-0.4-1.8-1.2-2.4c-0.8-0.6-1.8-1.1-3-1.5
+ c-1.2-0.4-2.6-0.8-4-1.2c-3.5-1.1-6.1-2.7-7.6-4.9c-1.6-2.1-2.3-4.5-2.3-7c0-1.9,0.5-3.9,1.5-5.9c1-2,2.7-3.6,4.9-4.9
+ c2.3-1.3,5.2-2,8.8-2c3.2,0,6,0.3,8.2,1c2.2,0.6,4.4,1.7,6.4,3.2l-4.7,7.2c-1.1-0.9-2.4-1.6-3.7-2.2c-1.4-0.6-2.7-1-3.8-1
+ c-1.1-0.1-2,0.1-2.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.8-7.8h7.6v36.5h-8.2v-9.5
+ l0.9,2.1c-0.2,0.6-0.8,1.3-1.5,2.2c-0.8,0.9-1.9,1.8-3.2,2.8c-1.3,0.9-2.8,1.7-4.5,2.3C391.1,69,389.2,69.3,387.1,69.3z
+ M389.3,62.5c2.1,0,3.9-0.4,5.6-1.1c1.6-0.8,3-1.8,4.1-3.2c1.1-1.4,1.8-3,2.2-5V46c-0.5-1.8-1.3-3.3-2.5-4.6
+ c-1.2-1.3-2.6-2.4-4.2-3.1c-1.6-0.7-3.5-1.1-5.5-1.1c-2.2,0-4.2,0.5-6,1.6c-1.8,1.1-3.3,2.5-4.4,4.4c-1.1,1.9-1.6,4.1-1.6,6.6
+ c0,2.4,0.6,4.5,1.7,6.4c1.1,1.9,2.6,3.5,4.5,4.6C385.1,62,387.1,62.5,389.3,62.5z"/>
+</g>
+</svg>
diff --git a/assets/icons/stella.svg b/assets/icons/stella.svg
index abaeea3..cf9d507 100644
--- a/assets/icons/stella.svg
+++ b/assets/icons/stella.svg
@@ -1 +1,17 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="m315-688 107-143q11.086-14.968 26.329-21.984Q463.571-860 481-860q17.143 0 32.124 7.016Q528.105-845.968 539-831l106.369 142.743L810-632q25 10 37.5 29.661 12.5 19.66 12.5 42.019 0 10.32-3.567 21.391Q852.867-527.857 846-518L739-374l4 157q0 31.145-22.848 54.072Q697.304-140 666-140q-2 0-18-2l-168-51-165.837 50.885Q309-140 304.765-140.5q-4.236-.5-7.765-.5-32.6 0-56.3-21.928Q217-184.855 218-218l4-156-108-145q-6.867-9.957-10.433-20.606Q100-550.254 100-560.902q0-22.929 13.709-43.259Q127.418-624.49 152-633l163-55Zm33 46-163 56q-15 5-20.5 20.5T169-537l110 147-8 159q-1 17 12 27t29 5l168.5-49L649-199q16 5 29-5t12-27l-7-160 109-145q10-13 4.5-28.5T776-585l-164-57-107-143q-9-13-25-13t-25 13L348-642Zm133 144Z"/></svg> \ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
+<g>
+ <path d="M0.5,423.2V68h70.1c0.3,0.1,42.5,7,82.8,33.2c23.7,15.4,42.2,34.3,54.9,56.2c15.9,27.4,22.9,59.6,20.7,95.7
+ c-2.2,36.1-12.6,67.6-30.8,93.4c-14.6,20.7-34.2,37.8-58.3,51c-40.8,22.3-80.9,25.6-81.9,25.6H0.5z"/>
+ <path d="M70.5,68.5c2,0.3,43.2,7.5,82.7,33.1c23.6,15.3,42,34.2,54.7,56c15.9,27.3,22.8,59.4,20.6,95.4
+ c-2.2,36-12.5,67.4-30.7,93.1c-14.5,20.6-34.1,37.7-58.1,50.9c-40.5,22.1-80.4,25.5-81.7,25.6H1V68.5H70.5 M70.6,67.5H0v356.1h58
+ c0,0,161.8-11.6,171.5-170.5C239.1,94.3,70.6,67.5,70.6,67.5L70.6,67.5z"/>
+</g>
+<g>
+ <path d="M486.2,92.5l0.7,306.1l-43.3,0.1c-7.8-1.5-41.3-9-73.1-29.9c-20.1-13.2-35.7-29.3-46.3-47.7c-13.2-23-19-50.3-17.2-81.2
+ c3.3-56.2,28.4-97.8,74.7-123.8c33.6-18.8,67.2-23,72.6-23.6L486.2,92.5 M455.2,92.5L455.2,92.5L455.2,92.5 M511.2,67.5l-58,0.1
+ c0,0-161.8,12-171.1,170.9c-9.3,158.9,159.3,185.3,159.3,185.3l70.6-0.2L511.2,67.5L511.2,67.5z"/>
+</g>
+</svg>
diff --git a/assets/js/normalizer.js b/assets/js/normalizer.js
index c18d242..ae3f830 100644
--- a/assets/js/normalizer.js
+++ b/assets/js/normalizer.js
@@ -2,12 +2,17 @@ window.currentNormalizationContext = null;
window.currentNormalizationContext2 = null;
window.currentNormalizationContext3 = null;
-function normalizeAudio(ab, gainBoost) {
+function normalizeAudio(ab, gainBoost, stella) {
ab = ab.slice(0);
return new Promise((res) => {
let currentNormalizationProfile = currentNormalizationContext.createGain();
- currentNormalizationProfile.gain.value = (1.0 + gainBoost) / 10.0;
+
+ if (localStorage.getItem("noamp") !== "true" && !stella) {
+ currentNormalizationProfile.gain.value = (1.0 + gainBoost) / 10.0 + 0.5;
+ } else {
+ currentNormalizationProfile.gain.value = (1.0 + gainBoost) / 10.0;
+ }
if (localStorage.getItem("normalize") === "false") res(currentNormalizationProfile);
@@ -33,7 +38,13 @@ function normalizeAudio(ab, gainBoost) {
gain = gain / 10.0;
console.log("Calculated gain:", gain);
- currentNormalizationProfile.gain.value = gain;
+
+ if (localStorage.getItem("noamp") !== "true" && !stella) {
+ currentNormalizationProfile.gain.value = gain + 0.5;
+ } else {
+ currentNormalizationProfile.gain.value = gain;
+ }
+
res(currentNormalizationProfile);
});
});
diff --git a/assets/styles.css b/assets/styles.css
index f661cdd..14d7bec 100644
--- a/assets/styles.css
+++ b/assets/styles.css
@@ -47,7 +47,7 @@ body.native #lyrics-page {
}
@media (max-width: 1200px) {
- #album-grid {
+ #album-grid, #search-results {
grid-template-columns: repeat(4, 1fr) !important;
}
@@ -57,7 +57,7 @@ body.native #lyrics-page {
}
@media (max-width: 1215px) {
- #album-grid {
+ #album-grid, #search-results {
grid-template-columns: repeat(5, 1fr) !important;
}
@@ -83,7 +83,7 @@ body.native #lyrics-page {
}
@media (max-width: 1295px) {
- #album-grid {
+ #album-grid, #search-results {
grid-template-columns: repeat(4, 1fr) !important;
}
@@ -107,7 +107,7 @@ body.native #lyrics-page {
display: none !important;
}
- #album-grid {
+ #album-grid, #search-results {
grid-template-columns: repeat(3, 1fr) !important;
}
@@ -117,7 +117,7 @@ body.native #lyrics-page {
}
@media (max-width: 767px) {
- #album-grid {
+ #album-grid, #search-results {
grid-template-columns: repeat(2, 1fr) !important;
}
@@ -484,10 +484,6 @@ body.web {
display: none !important;
}
-.mist-stella {
- display: none !important;
-}
-
.tooltip {
z-index: 99999 !important;
}
diff --git a/includes/session.php b/includes/session.php
index 4bda760..ee6cd85 100644
--- a/includes/session.php
+++ b/includes/session.php
@@ -119,6 +119,7 @@ function displayList($list, $hasAlbum = false) { global $albums; global $favorit
window.parent.playSong(id);
} else {
window.parent.playlist.splice(window.parent.currentPlaylistPosition + 1, 0, id);
+ window.parent.updateDisplay(true);
}
}
diff --git a/oauth/.DS_Store b/oauth/.DS_Store
index 053721e..2a12673 100644
--- a/oauth/.DS_Store
+++ b/oauth/.DS_Store
Binary files differ
diff --git a/version b/version
index afa2b35..0bfbd57 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-1.8.0 \ No newline at end of file
+1.8.2 \ No newline at end of file