removed garbage and sped up audio piping
This commit is contained in:
parent
aa5d9a4650
commit
8559eca7f0
3 changed files with 21 additions and 79 deletions
|
@ -784,7 +784,6 @@ const app = new Vue({
|
|||
// app.getNowPlayingArtwork(42);
|
||||
app.getNowPlayingArtworkBG(32);
|
||||
app.loadLyrics();
|
||||
app.losslessBadge();
|
||||
|
||||
// Playback Notifications
|
||||
if (this.cfg.general.playbackNotifications && !document.hasFocus() && a.artistName && a.artwork && a.name) {
|
||||
|
@ -2348,26 +2347,6 @@ const app = new Vue({
|
|||
})
|
||||
notyf.success(app.getLz('action.removeFromLibrary.success'))
|
||||
},
|
||||
|
||||
async losslessBadge() {
|
||||
const songID = (this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem["_songId"] ?? (this.mk.nowPlayingItem["songId"] ?? -1) : -1;
|
||||
if (app.cfg.advanced.ciderPPE && songID != -1) {
|
||||
/**let extendedAssets = await app.mk.api.song(songID, {extend : 'extendedAssetUrls'})
|
||||
if (extendedAssets.attributes.audioTraits.includes('lossless')) {*/
|
||||
app.mk.nowPlayingItem['attributes']['lossless'] = true
|
||||
CiderAudio.audioNodes.llpwEnabled = 1
|
||||
console.log("[Cider][Audio] PPE Kicking in...");
|
||||
CiderAudio.hierarchical_loading();
|
||||
/**}
|
||||
else {
|
||||
CiderAudio.audioNodes.llpwEnabled = 0
|
||||
} */
|
||||
}
|
||||
|
||||
else {
|
||||
CiderAudio.audioNodes.llpwEnabled = 0
|
||||
}
|
||||
},
|
||||
async loadYTLyrics() {
|
||||
const track = (this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.title ?? '' : '';
|
||||
const artist = (this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.artistName ?? '' : '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue