Add console.log and enable lossless icon's.
This commit is contained in:
parent
0e00f80190
commit
93483ad903
3 changed files with 17 additions and 2 deletions
|
@ -2354,7 +2354,9 @@ const app = new Vue({
|
||||||
let extendedAssets = await app.mk.api.song(songID, {extend : 'extendedAssetUrls'})
|
let extendedAssets = await app.mk.api.song(songID, {extend : 'extendedAssetUrls'})
|
||||||
if (extendedAssets.attributes.audioTraits.includes('lossless')) {
|
if (extendedAssets.attributes.audioTraits.includes('lossless')) {
|
||||||
app.mk.nowPlayingItem['attributes']['lossless'] = true
|
app.mk.nowPlayingItem['attributes']['lossless'] = true
|
||||||
CiderAudio.audioNodes.llpwEnabled = 1}
|
CiderAudio.audioNodes.llpwEnabled = 1
|
||||||
|
console.log("[Cider][Lossless] Audio being decrypted...")
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
CiderAudio.audioNodes.llpwEnabled = 0
|
CiderAudio.audioNodes.llpwEnabled = 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -1148,10 +1148,20 @@ body[platform="darwin"] .app-chrome .app-chrome-item > .window-controls > div.cl
|
||||||
.explicit-icon {
|
.explicit-icon {
|
||||||
background-image: url("./assets/explicit.svg");
|
background-image: url("./assets/explicit.svg");
|
||||||
height: 9px;
|
height: 9px;
|
||||||
|
width: 13px;
|
||||||
|
filter: contrast(0);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lossless-icon {
|
||||||
|
background-image: url("http://localhost:9000/assets/lossless.svg");
|
||||||
|
height: 9px;
|
||||||
width: 36px;
|
width: 36px;
|
||||||
filter: contrast(0);
|
filter: contrast(0);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
|
background-size: contain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,11 +52,14 @@
|
||||||
<div class="playback-info">
|
<div class="playback-info">
|
||||||
<div class="song-name" style="-webkit-box-orient: horizontal;"
|
<div class="song-name" style="-webkit-box-orient: horizontal;"
|
||||||
:class="[isElementOverflowing('#app-main > div.app-chrome > div.app-chrome--center > div > div > div.playback-info > div.song-name') ? 'marquee' : '']"
|
:class="[isElementOverflowing('#app-main > div.app-chrome > div.app-chrome--center > div > div > div.playback-info > div.song-name') ? 'marquee' : '']"
|
||||||
:style="[mk.nowPlayingItem['attributes']['contentRating'] == 'explicit' ? {'margin-left' : '23px'} : {'margin-left' : '0px'} ]">
|
:style="[mk.nowPlayingItem['attributes']['contentRating'] == 'explicit' || mk.nowPlayingItem['attributes']['lossless'] == true ? {'margin-left' : '23px'} : {'margin-left' : '0px'} ]">
|
||||||
{{ mk.nowPlayingItem["attributes"]["name"] }}
|
{{ mk.nowPlayingItem["attributes"]["name"] }}
|
||||||
<div class="explicit-icon"
|
<div class="explicit-icon"
|
||||||
v-if="mk.nowPlayingItem['attributes']['contentRating'] == 'explicit'"
|
v-if="mk.nowPlayingItem['attributes']['contentRating'] == 'explicit'"
|
||||||
style="display: inline-block"></div>
|
style="display: inline-block"></div>
|
||||||
|
<div class="lossless-icon"
|
||||||
|
v-if="mk.nowPlayingItem['attributes']['lossless'] == true"
|
||||||
|
style="display: inline-block"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="song-artist-album">
|
<div class="song-artist-album">
|
||||||
<div class="song-artist-album-content"
|
<div class="song-artist-album-content"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue