1.1.11 - UI changes, volume curve etc

This commit is contained in:
exttex
2020-12-13 19:24:25 +01:00
parent 74f049ac71
commit 5c40db1242
35 changed files with 537 additions and 168 deletions

View File

@ -89,7 +89,7 @@ class Playlist {
this.id = json.PLAYLIST_ID.toString(),
this.title = json.TITLE,
this.trackCount = json.NB_SONG ? json.NB_SONG : tracksJson.total;
this.image = new DeezerImage(json.PLAYLIST_PICTURE, 'playlist');
this.image = new DeezerImage(json.PLAYLIST_PICTURE, json.PICTURE_TYPE);
this.fans = json.NB_FAN;
this.duration = parseInt((json.DURATION ? json.DURATION : 0).toString(), 10) * 1000;
this.description = json.DESCRIPTION;

View File

@ -69,8 +69,9 @@ app.post('/settings', async (req, res) => {
app.post('/authorize', async (req, res) => {
if (!req.body.arl || req.body.arl.length < 100) return res.status(500).send('Invalid ARL');
//Check if arl valid
deezer.arl = req.body.arl;
//Check if ARL valid
let electron = deezer.electron;
deezer = new DeezerAPI(req.body.arl, electron);
settings.arl = req.body.arl;
if (await (deezer.authorize())) {

View File

@ -36,7 +36,6 @@ class Settings {
this.language = 'en';
this.crossfadeDuration = 3000;
this.lightTheme = false;
this.playlistFolder = false;
this.forceWhiteTrayIcon = false;