Merge branch 'develop' of https://github.com/ciderapp/Cider into develop

This commit is contained in:
vapormusic 2022-03-23 19:02:38 +07:00
commit fa5633c501
5 changed files with 161 additions and 138 deletions

View file

@ -173,6 +173,7 @@
.app-chrome--right {
width: 30%;
flex: 0 0 auto;
padding-right: 8px;
}
}
.collection-page {

View file

@ -604,6 +604,11 @@ const app = new Vue({
try {
// Set profile name
this.chrome.userinfo = (await app.mk.api.v3.music(`/v1/me/social-profile`)).data.data[0]
// check if this.chrome.userinfo.attributes.artwork exists
if (this.chrome.userinfo.attributes.artwork) {
document.documentElement.style
.setProperty('--cvar-userprofileimg', `url("${this.getMediaItemArtwork(this.chrome.userinfo.attributes.artwork.url)}")`);
}
} catch (err) {
}
@ -2724,7 +2729,8 @@ const app = new Vue({
}
} else { //4xx rejected
getToken(1, track, artist, '', lang, time);
}}catch(e){
}
} catch (e) {
console.log(e);
app.loadAMLyrics()
}
@ -2771,7 +2777,8 @@ const app = new Vue({
}
} else { //4xx rejected
getToken(2, '', '', id, lang, '');
}}catch(e){}
}
} catch (e) { }
}
req2.send();
}

View file

@ -929,6 +929,9 @@
},
toggleAudioContext: function () {
if (app.cfg.advanced.AudioContext === true) {
if (navigator.hardwareConcurrency < 6) {
bootbox.confirm("Cider detects less than 6 logical processors, turning this on will most certainly lag. Are you sure you want to continue?", function (result) {
if (result) {
CiderAudio.init();
if (app.cfg.audio.normalization === true) {
CiderAudio.normalizerOn()
@ -937,6 +940,18 @@
CiderAudio.spatialOn()
CiderAudio.hierarchical_loading();
}
}})
}
else {
CiderAudio.init();
if (app.cfg.audio.normalization === true) {
CiderAudio.normalizerOn()
}
if (app.cfg.audio.spatial === true) {
CiderAudio.spatialOn()
CiderAudio.hierarchical_loading();
}
}
} else {
CiderAudio.off();
}