FairDJ 0.2.3 beta released!

FairDJ is a music jukebox designed for a room with a couple of people in it and one set of speakers. The users rate songs, and the program selects songs so that everybody gets to hear music they like.

Moderators: Marcus, walles

Post Reply
User avatar
Marcus
Site Admin
Posts: 1862
Joined: 2005.04.04 10:52
Location: Küssnacht am Rigi
Contact:

FairDJ 0.2.3 beta released!

Post by Marcus »

Fixed "rate me too" notifications, and a bug using multiple media dirs.

http://hirt.se/twiki/pub/Main/ScratchPa ... _0.2.3.zip
mjo
Apprentice
Posts: 24
Joined: 2006.02.27 10:21

(Re)install broken(?)

Post by mjo »

having already done

Code: Select all

java -jar fairdj.jar -install
with an older version results in

Code: Select all

C:\tmp\fairdj>java -jar FairDJ_0.2.3\fairdj.jar -install
2006-02-28 09:37:48,285 [Main Thread    ] INFO            net.sf.fairdj.FairDj: Fair DJ is exiting due to install command. Settings file location should be on the previous line.

C:\tmp\fairdj>
We maybe should support rebuilding a new settings file. While at it, option to inform where to create settings file?
mjo
Apprentice
Posts: 24
Joined: 2006.02.27 10:21

Setting ratings path to non-existent folder gives exception

Post by mjo »

I set the following in settings.xml:

Code: Select all

<mediadir>d:\mp3</mediadir>
<ratingsdir>ratings</ratingsdir>
where the folder ratings does not exist. This results in

Code: Select all

C:\tmp\fairdj>java -jar FairDJ_0.2.3\fairdj.jar -settings settings.xml
2006-02-28 09:45:46,554 [Main Thread    ] INFO            net.sf.fairdj.FairDj: Loading settings from C:\tmp\fairdj\settings.xml
2006-02-28 09:45:47,023 [Main Thread    ] INFO     net.sf.fairdj.FairDJFactory: Creating Fair DJ subsystems.
2006-02-28 09:45:47,148 [Main Thread    ] INFO     net.sf.fairdj.FairDJFactory: Initializing Fair DJ subsystems from XML.
2006-02-28 09:45:47,163 [Main Thread    ] INFO  net.sf.fairdj.users.UserDbImpl: userdb not set, faking it in C:\DOCUME~1\mattias\LOCALS~1\Temp\fairdj-demo-userdb
2006-02-28 09:45:47,257 [Main Thread    ] FATAL .sf.fairdj.tracks.TracksDbImpl: Can't locate mserv db root.
java.io.FileNotFoundException: The given path to the Mserv database 'ratings' do esn't exist
        at net.sf.fairdj.mservdb.MservDb.<init>(MservDb.java:49)
        at net.sf.fairdj.tracks.TracksDbImpl.setRatingsRoot(TracksDbImpl.java:124)
        at net.sf.fairdj.tracks.TracksDbImpl.loadFromXml(TracksDbImpl.java:411)
        at net.sf.fairdj.FairDJFactory.initializeTracksDb(FairDJFactory.java:231)
        at net.sf.fairdj.FairDJFactory.loadFromXml(FairDJFactory.java:184)
        at net.sf.fairdj.FairDj.loadFromXml(FairDj.java:439)
        at net.sf.fairdj.FairDj.initiateFromSettings(FairDj.java:384)
        at net.sf.fairdj.FairDj.start(FairDj.java:349)
        at net.sf.fairdj.FairDj.main(FairDj.java:339)
2006-02-28 09:45:47,288 [Main Thread    ] INFO            net.sf.fairdj.FairDj: Shutdown complete, see ya

C:\tmp\fairdj>
I suggest deafult action is to create folder and move on.
User avatar
Marcus
Site Admin
Posts: 1862
Joined: 2005.04.04 10:52
Location: Küssnacht am Rigi
Contact:

Post by Marcus »

Doing

Code: Select all

java -jar fairdj.jar -help install
yields:

Code: Select all

Usage: install
  Will really just exit Fair DJ after the default initialization,
  which includes setting up the default settings file, if no such file exists.
That is, the settings file will only be overwritten if no such file already exists. Now, I agree that it would be better backup the file if one already exists if one uses the install command. I will add this feature to the next version.
mjo
Apprentice
Posts: 24
Joined: 2006.02.27 10:21

I was going to report...

Post by mjo »

...that FairDJ could not create a user db from scratch (could not 0.2.2) but that has been fixed - nice! :-)
User avatar
Marcus
Site Admin
Posts: 1862
Joined: 2005.04.04 10:52
Location: Küssnacht am Rigi
Contact:

Post by Marcus »

Post Reply