IPB

Welcome Guest ( Log In | Register )

8 Pages V   1 2 3 > »   
Reply to this topicStart new topic
foo_dirwatch, Directory monitoring plugin
falling down the...
post Feb 9 2006, 20:37
Post #1





Group: Members
Posts: 57
Joined: 25-June 05
Member No.: 22963



This plugin allows you to specify directories to monitor, and notifies the Media Library of any changes (additions, renames, deletions) that occur.

Latest version: 0.2 beta 3 (2007-12-08)
REMOVED

Known issues
- a subset of directory removes are not handled
- moved files' playlist entries are not updated (renamed files' entries are, though)

This post has been edited by falling down the stairs: Oct 21 2008, 06:15
Go to the top of the page
+Quote Post
donnie
post Feb 9 2006, 21:58
Post #2





Group: Members
Posts: 121
Joined: 19-November 05
Member No.: 25865



I it doesn't seem to be doing anything for me sad.gif

I have set the paths of my directories, ticked the remove deleted files from the database box and set the filters to: *.mp3;*.wma

if I then add or remove files from the directories and and select directory watcher from my components menu, the database isn't getting updated.
Go to the top of the page
+Quote Post
metal_termite
post Feb 10 2006, 01:11
Post #3





Group: Members
Posts: 538
Joined: 10-July 04
Member No.: 15248



I like the idea of this plugin smile.gif

However, the plugin reuqires MSVCR70.dll to run, and I already have MSVCR71.dll in my foobar directory. I don't know what other foobar plugin uses MSVCR71.dll. I think its ColumnsUI.

Wouldn't it be better to use the newer dll?
Go to the top of the page
+Quote Post
falling down the...
post Feb 10 2006, 01:45
Post #4





Group: Members
Posts: 57
Joined: 25-June 05
Member No.: 22963



I uploaded a new version that fixes a crash bug and removes that menu item (because it doesn't do anything).

donnie - it's not working because you have include filters set -- currently they filter out directory notifications (whoops!). To see what I mean, try renaming an mp3 -- it should receive the notification.

I'll fix the include filters as soon as I can.

metal_termite - Not really. I only have MS Visual Studio.NET 2002. A lot of other plugins also require MSVCR70.DLL, so it's not like this is a unique situation.

EDIT: I uploaded a new version that fixes the include filters.

This post has been edited by falling down the stairs: Feb 10 2006, 03:17
Go to the top of the page
+Quote Post
francesco
post Feb 11 2006, 11:59
Post #5





Group: Members
Posts: 378
Joined: 28-January 06
Member No.: 27378



biggrin.gif Great plug-in
thanks for your job

tongue.gif tongue.gif


on every time does foo_dirwatch monitor the directories ? every x minutes?

This post has been edited by francesco: Feb 11 2006, 15:19
Go to the top of the page
+Quote Post
lupin
post Feb 11 2006, 15:04
Post #6





Group: Members
Posts: 8
Joined: 31-January 06
From: Middle of P.R.China
Member No.: 27438



QUOTE (falling down the stairs @ Feb 10 2006, 03:37 AM)
Please test files that are named with multi-byte character sets (e.g., Chinese, Japanese etc.); they should work fine but I want to be sure.
*

I tested files with Chinese names, and it worked like a charm.
However, directories to be monitored cannot contain Chinese characters.
I tested a directory with a Chinese named sub-folder. The console displayed a warning quoted below.

WARNING (foo_dirwatch) : Please check directories to monitor list in options, because "E:\music\诅咒(the sub-folder)" is not a valid directory on this system.

Please fix it. THX for such a good plugin.

Sorry for my poor English.
Go to the top of the page
+Quote Post
matth6546
post Feb 11 2006, 16:20
Post #7





Group: Members
Posts: 97
Joined: 2-October 04
Member No.: 17450



this is a good idea, but it doesn't seem to actually do much. when i add files to the directory, it doesn't detect them. i've tried disabling foo_dir and re-enabling it, i've tried closing and opening foobar - nothing. the only thing it does is remove a file from the database after foobar has tried to play it and discovered the file wasn't there.
Go to the top of the page
+Quote Post
francesco
post Feb 12 2006, 16:17
Post #8





Group: Members
Posts: 378
Joined: 28-January 06
Member No.: 27378



it seems that foo_dirwatch doesn't work perfectly

directory to monitor
I:\Music;G:\music mp3

include mask *.mp3;*.wma;*.m4?
exclude blank

I tried to add some dirs inside music , but nothig it did not add new mp3 in the database

in the console i get only these messages
CODE
INFO (foo_dirwatch) : Added "G:\music mp3\" to directory monitor list.
INFO (foo_dirwatch) : Added "I:\Music\" to directory monitor list.
INFO (foo_dirwatch) : Started monitoring directories



DATABASE setting
G:\music mp3\;I:\Music\
Restrict file type
BLANK

This post has been edited by francesco: Feb 14 2006, 13:30
Go to the top of the page
+Quote Post
enjoilax
post Feb 12 2006, 22:34
Post #9





Group: Members
Posts: 61
Joined: 10-May 05
Member No.: 21986



Not working here either.
Go to the top of the page
+Quote Post
falling down the...
post Feb 14 2006, 11:18
Post #10





Group: Members
Posts: 57
Joined: 25-June 05
Member No.: 22963



To clarify some things:

foo_dirwatch does not poll for changes; instead, it uses the Win32 API function ReadDirectoryChangesW to tell the OS to notify foo_dirwatch when changes occur. This function does not exist on Windows 9x/Me and so the plug-in will not work on those OS versions.

If the plug-in is not working for you, please list the following info:
- directories to monitor string
- include filter string
- exclude filter string
- amount of files/folders in each directory being monitored

I'll fix the directory to monitor multi-byte problem as soon as I can.
Go to the top of the page
+Quote Post
tgoose
post Feb 14 2006, 12:14
Post #11





Group: Members
Posts: 407
Joined: 12-April 05
Member No.: 21399



Awesome smile.gif This is just what I wanted!
Go to the top of the page
+Quote Post
francesco
post Feb 14 2006, 13:38
Post #12





Group: Members
Posts: 378
Joined: 28-January 06
Member No.: 27378



falling down the stairs i'm really grateful for the plug in


QUOTE
foo_dirwatch does not poll for changes; instead, it uses the Win32 API function ReadDirectoryChangesW to tell the OS to notify foo_dirwatch when changes occur. This function does not exist on Windows 9x/Me and so the plug-in will not work on those OS versions.



Could you make an example that i can come true ,realize, so i can know if the plugin works to me??


i tried to add directory , tried to save mp3 in new directory , tried to move directory /mp3 , but nothing , this doen't update my database

i have 817 files in 91 subfolders in one directory and 1.580 files in 176 subfolders in another directory


for me could be better , a plug that every x minutes ,can scan the database(the whole) and remove dead entries

This post has been edited by francesco: Feb 14 2006, 14:25
Go to the top of the page
+Quote Post
falling down the...
post Feb 14 2006, 19:59
Post #13





Group: Members
Posts: 57
Joined: 25-June 05
Member No.: 22963



QUOTE (francesco @ Feb 14 2006, 07:38 AM)
Could you make an example  that i can come true ,realize,  so i can know if the plugin works to me??

My setup is as follows:
Directories to monitor: F:\music;G:\music
Include filter: *.mp3;*.mp2;*.shn;*.flac;*.m4a;*.mpc;*.ogg
Exclude filter: *.jpg;*.gif;*.png;*.nfo;*.txt;*.tmp;*.bmp;*.ini

QUOTE
i tried to add directory , tried to save mp3 in new directory , tried to move directory /mp3 , but nothing , this doen't update my database

Does anything show up in the console? The plug-in prints a console message every time it adds/updates/removes something from the database.

QUOTE
for me could be better  , a plug that every x minutes ,can scan the database(the whole) and remove dead entries
*

That is not the intent of this plug-in. I don't want it to thrash the hard drive just to update the database - that would be a lot slower, plus you can already do that in foobar (Preferences / Database / Remove dead entries from database).
Go to the top of the page
+Quote Post
francesco
post Feb 14 2006, 20:46
Post #14





Group: Members
Posts: 378
Joined: 28-January 06
Member No.: 27378



QUOTE
Does anything show up in the console? The plug-in prints a console message every time it adds/updates/removes something from the database.


after several testes
i get only this info from dir watch plug
CODE
INFO (foo_dirwatch) : Added "I:\mp3" to directory monitor list.
INFO (foo_dirwatch) : Added "G:\music mp3" to directory monitor list.
INFO (foo_dirwatch) : Started monitoring directories.


only 1 time, i got foo_driwatch found new songs , but it did not add to the database
Go to the top of the page
+Quote Post
falling down the...
post Feb 15 2006, 05:09
Post #15





Group: Members
Posts: 57
Joined: 25-June 05
Member No.: 22963



I've uploaded a new version that fixes the multi-byte problem with the "directories to monitor" field.

I did notice some problems with the plug-in myself (a directory move was not caught for some reason).
If you are having problems please help me track them down with these test cases:

1. Copy a file into one of the monitored directories. (Should trigger a "Precached..." note).
2. Copy a directory into one of the monitored directories. (same as above)
3. Rename a single file in one of the monitored directories. (Should trigger a "... was renamed to ..." note)
4. Rename a directory in one of the monitored directories. (same as above)
5. Move a file from one subdirectory to another in one of the monitored directories. (Should trigger one "Precached..." and one "Removed..." note)
6. Move a directory from one subdirectory to another in one of the monitored directories. (same as above)

Be sure to list the settings you are using in the foo_dirwatch preferences.

To see if database changes did actually occur I recommend the foo_dbsearch plug-in.
Go to the top of the page
+Quote Post
francesco
post Feb 15 2006, 14:37
Post #16





Group: Members
Posts: 378
Joined: 28-January 06
Member No.: 27378






QUOTE
1. Copy a file into one of the monitored directories. (Should trigger a "Precached..." note).
2. Copy a directory into one of the monitored directories. (same as above)
3. Rename a single file in one of the monitored directories. (Should trigger a "... was renamed to ..." note)
4. Rename a directory in one of the monitored directories. (same as above)
5. Move a file from one subdirectory to another in one of the monitored directories. (Should trigger one "Precached..." and one "Removed..." note)
6. Move a directory from one subdirectory to another in one of the monitored directories. (same as above)


i did several times

CODE
INFO (foo_dirwatch) : Added "I:\mp3" to directory monitor list.
INFO (foo_dirwatch) : Added "G:\music mp3" to directory monitor list.
INFO (foo_dirwatch) : Started monitoring directories.
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://I:\Music\Black Sabbath\Master Of Reality\01.  Sweet Leaf.mp3" (0)
INFO (CORE) : startup time: 610 ms
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://I:\Music\Black Sabbath\Master Of Reality\02.  After Forever.mp3" (0)
INFO (CORE) : attempting to edit file info : file://I:\Music\Black Sabbath\Master Of Reality\02.  After Forever.mp3
INFO (CORE) : file info update pending / file busy on : file://I:\Music\Black Sabbath\Master Of Reality\02.  After Forever.mp3
INFO (foo_playcount) : File busy, update queued.



i did several testes but nothing mad.gif mad.gif

This post has been edited by francesco: Feb 15 2006, 14:37
Go to the top of the page
+Quote Post
enjoilax
post Feb 15 2006, 19:07
Post #17





Group: Members
Posts: 61
Joined: 10-May 05
Member No.: 21986



Works at deleting at least smile.gif Thanks!
Go to the top of the page
+Quote Post
c0utta
post Feb 16 2006, 03:42
Post #18





Group: Members
Posts: 50
Joined: 28-May 05
Member No.: 22351



falling down the stairs,

An excellent plug-in - works seamlessly with my removable drive.

I do have issues with UNC paths, but I understand that ReadDirectoryChangesW is only for drives - can you confirm? I haven't been able to deduce whether mapping the UNC path to a drive works either.

Not being a foobar developer myself (dumb question approaching!) is it possible to perform a start-up inventory in the 'background' i.e. with a low priority thread?

Once again, thanks.

c0utta
Go to the top of the page
+Quote Post
falling down the...
post Feb 16 2006, 09:14
Post #19





Group: Members
Posts: 57
Joined: 25-June 05
Member No.: 22963



QUOTE (c0utta @ Feb 15 2006, 09:42 PM)
falling down the stairs,

An excellent plug-in - works seamlessly with my removable drive.

I do have issues with UNC paths, but I understand that ReadDirectoryChangesW is only for drives - can you confirm?  I haven't been able to deduce whether mapping the UNC path to a drive works either.

What issues are you having? ReadDirectoryChangesW is compatible with UNC paths. There are some limitations, but the current code should work with UNC paths. I don't think mapping a drive would change anything.

QUOTE
Not being a foobar developer myself (dumb question approaching!) is it possible to perform a start-up inventory in the 'background' i.e. with a low priority thread?

Yes, that's probably the best way to do it. I haven't implemented the inventory scan because I haven't yet decided on the best way to store the relevant data.
Go to the top of the page
+Quote Post
falling down the...
post Feb 17 2006, 01:17
Post #20





Group: Members
Posts: 57
Joined: 25-June 05
Member No.: 22963



I uploaded a new version. This one actually uses foobar's built in reader functionality, so when a file is added to the database its metadata is also automatically added.

No leads on the mysterious missing notifications, though.
Go to the top of the page
+Quote Post
dubpistol
post Feb 17 2006, 08:44
Post #21





Group: Members
Posts: 176
Joined: 15-October 02
From: Camelot
Member No.: 3550



Fantastic plugin ... it makes foobar perfect.

thank you
Go to the top of the page
+Quote Post
francesco
post Feb 17 2006, 12:46
Post #22





Group: Members
Posts: 378
Joined: 28-January 06
Member No.: 27378



falling down the stairs

tha last version works like a charm !!!
Great plug in biggrin.gif biggrin.gif biggrin.gif


only 1 time it did not work i renamed a folder placebo to placebo c , and dirwatch detected the change , after immediately i re-renamed to placebo , and it did not catch it

by the way , i did several several tests and dirwatch works really like a charm

with the feature Perform startup & shutdown inventory , this plug in makes foobar really perfect without rivals biggrin.gif biggrin.gif


thanks falling down the stairs
Go to the top of the page
+Quote Post
gorman
post Feb 17 2006, 17:11
Post #23





Group: Members
Posts: 66
Joined: 19-March 05
Member No.: 20746



Installing it now. If it works it's pretty much what I've been looking for in a year or so. biggrin.gif

One question: for it to work the changes to the monitored directories must happen when foobar is active?

This post has been edited by gorman: Feb 17 2006, 17:13
Go to the top of the page
+Quote Post
gorman
post Feb 17 2006, 17:19
Post #24





Group: Members
Posts: 66
Joined: 19-March 05
Member No.: 20746



QUOTE (metal_termite @ Feb 10 2006, 02:11 AM)
However, the plugin reuqires  MSVCR70.dll to run, and I already have MSVCR71.dll in my foobar directory. I don't know what other foobar plugin uses MSVCR71.dll. I think its ColumnsUI.

Wouldn't it be better to use the newer dll?
*
Another question, sorry. Can I have both DLLs in my components directory? I currently have only version 71, but when I launch foobar I don't get any error message from this component.
Go to the top of the page
+Quote Post
matth6546
post Feb 17 2006, 19:04
Post #25





Group: Members
Posts: 97
Joined: 2-October 04
Member No.: 17450



i installed the 2/16 version, but i can't turn on "Perform startup & shutdown inventory" feature. i can't tell that this component is actually doing anything.
Go to the top of the page
+Quote Post

8 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2014 - 08:09