music-folder-player icon indicating copy to clipboard operation
music-folder-player copied to clipboard

Error im music.js

Open askurashev opened this issue 2 years ago • 2 comments

Hello. I get white page and error in Chrome Console:

music.js:106 Uncaught TypeError: pathexp.replace is not a function
    at HTMLScriptElement.lib.onload (music.js:106:21)
lib.onload @ music.js:106
Объект load (асинхронный)
init @ music.js:104
onload @ (индекс):13

askurashev avatar Apr 15 '22 19:04 askurashev

Hi, I can't reproduce this (without more info).

  1. Do you have your own music.ini? Can you post the contents here?
  2. Have you tried with a fully new setup (without your own music.ini)?

ltguillaume avatar Apr 15 '22 20:04 ltguillaume

@askurashev MFP tries to write a cached version of the library structure into music.pls/library.json if you have set the cache to enabled. This fails if you haven't set the proper permissions to the music.pls folder, or to the folder MFP is in if it wants to create the missing music.pls folder.

So, I figured out you must have the setting cache = 1 in music.ini and not have given the playlist folder (specified by playlistdir (by default music.pls) proper write permissions.

ltguillaume avatar Apr 26 '22 18:04 ltguillaume