[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: dr_memory  XML
Profile for dr_memory -> Messages posted by dr_memory [3]
Author Message
I've been using Jaikoz's "correct filename/foldername from tags" feature to clean up a ton of old mis-tagged and mis-named music files, and it's generally awesome. There's Just One Thing...

I run a mixed MacOS and Linux environment at home, and that comes with some weird tradeoffs. Under linux, "/" is a directory separator, and you can't ever use it in a filename. Under MacOS, the same is true of ":". Presumably if I were to throw Windows into the mix, I'd have similar problems with "\".

Right now, it looks like Jaikoz just silently discards impossible characters from file and folder names when it tries to save files or folders. That's a good default, but I'd love to be able to set up something like the word replacer manipulator, but for filenames instead of tags. e.g. in my circumstance, I'd have a filter that replaced / with \, and replaced : with -. Then for bonus points I'd replace " " with "_", because http servers do ugly things to filenames with spaces in them.

Would this be difficult to implement?

paultaylor wrote:
Is the folder a symbolic link ?

Jaikoz currently ignores symbolic links to prevent recursive loops when loading files and to deal with an issue on Linux with remotely mounted file systems with non ascii characters in the filename which are not translated properly when the file system is viewed as a remote file ystem. 


Aha, yeah, that's done it: /project/music is a symlink to /usr/local/project/music. Using the base directory name fixes the problem.

Pruning symlinks during your directory search makes sense, but you might want to make an exception for the base of the tree, or at least log an error when you're skipping a symlink.
First time trying out jaikoz, and I suspect I'm doing something stupid here.

first off, the environment:

CentOS Release 4.5
Linux mediabox.local 2.6.9-67.0.22.plus.c4 #1 Wed Jul 23 17:34:19 EDT 2008 i686 i686 i386 GNU/Linux
java full version "1.6.0_07-b06"

I fire up jaikoz, hit the "open folder" button, select the top of my music tree, and... nothing happens. The "loading songs from filesystem" dialog box shows up for a few seconds, and then it vanishes and there's nothing populated.

In the logs, I see:

Debug:

Code:
16/08/2008 16.06.01:com.jthink.jaikoz.monitoring.MemoryManager:addMemoryNotification:WARNING: Low memory limit is set for:Tenured Gen:617050931
 16/08/2008 16.06.02:com.jthink.jaikoz.db.Db:createConnection:WARNING: Creating Database Connection


User:

Code:
Aug 16, 2008 4:06:01 PM: INFO: Jaikoz 2.5.2 using Java 1.6.0_07 on Linux 2.6.9-67.0.22.plus.c4 initialized successfully 
 Aug 16, 2008 4:06:01 PM: INFO: Jaikoz has been configured with minimum heap memory of 150 Mb and maximum memory of 744 Mb
 Aug 16, 2008 4:06:01 PM: INFO: Started to load files from /project/music
 Aug 16, 2008 4:06:13 PM: INFO: Counted 0 files that could be loaded from /project/music
 Aug 16, 2008 4:06:13 PM: INFO: Completed loading of 0 files from /project/music
 Aug 16, 2008 4:06:14 PM: INFO: 0 files are loaded


And that's just not right:

Code:
[root@mediabox /project/music]# find . -type f |wc -l
 23933


All of the files in /project/music are readable by the user jaikoz is running as... so what gives?
 
Profile for dr_memory -> Messages posted by dr_memory [3]
Go to:   
Powered by JForum 2.1.6 © JForum Team