INI-file and local db on usb drive: problems

Everything, that fits not well into other forums - Questions, Talk, Beta-Versions ...
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
n00n3
Posts: 2
Joined: 11. May 05, 16:14
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

INI-file and local db on usb drive: problems

Postby n00n3 » 11. May 05, 16:24

hello,
i found Silverjuke very interesting, especially for the possibility of running from an usb drive, on wich i have my mp3 collection
i have read the documentation on setting up the ini file in the local dir, and of the possibility to manually add the db location in the main section,
nevertheless when i try nothing happens, and the program insist to create an empty db on my c:/documents and settings/username/application data/silverjuke dir.
this vanify all the aspects of having portability, not only of player but of course of the db index of the songs and covers

i have my db called mp3.db (yes, i know i'm an original guy :D) in the folder on the removable media where is installed silverjuke, i added in the main section of silverjuke.ini

db=mp3.db

but nothing changes :(
the funny thing is that if i launch the exe from the commandline and i pass the parameter --db=mp3.db it works like a charm :(
quite confused...it seems to don't read the ini at all
any clues?

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: INI-file and local db on usb drive: problems

Postby Service-Team » 11. May 05, 18:00

Unfortunately, there was a documentation error in viewtopic.php?t=28 -- the INI-file must have the name mysettings.ini and not "silverjuke.ini"... so if you use the name "mysettings.ini" for the INI-file, everything should work as expected.

Another hint: As the paths to the music files are stored absolutly, it is a good idea to assign always the same letter, eg. "M:" to the external device.
Last edited by Service-Team on 27. Jul 06, 12:11, edited 2 times in total.

n00n3
Posts: 2
Joined: 11. May 05, 16:14
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: INI-file and local db on usb drive: problems

Postby n00n3 » 12. May 05, 00:11

Service-Team wrote:
> Unfortunately, there was a documentation error in
> viewtopic.php?t=28 --
> the INI-file must have the name mysettings.ini
> and not "silverjuke.ini"... so if you use the
> name "mysettings.ini" for the INI-file,
> everything should work as expected.

yes, indeed it works like a charm :)

> Another hint: As the paths to the music files are
> stored absolutly, it is a good idea to assign
> always the same letter, eg. "M:" to the external
> device.

mmm...isn't that putting a limit to the portability? isn't it possible to use relative paths, so to be able to plug n play wherever you are and simply turn every machine in a jukebox (better, a silverjuke :D)
i mean some parameter like

folder=../mp3

so to have perfect portability

(hey, thank you for the fast reply, it's always noticeable and appreciated to see the Author to stay in touch with the customers :D )


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Main Forum”