Latest WACUP beta release is build #9630 (December 22nd 2021) | Latest WACUP public preview is build #7236 (March 11th 2021)


NOTE: New beta testers are not currently being added as I need to re-work the beta test program

If you've not already requested to be a beta tester & would like to then please send a PM to 'dro' to be added to the beta test group.

Note: requests to be a beta tester are processed in batches when new beta builds are released so please by patient of this process.

Author Topic: Add an Option to exclude folders from Watch Folders  (Read 4674 times)

legoluigi00

  • Newbie
  • *
  • Posts: 2
    • View Profile
Add an Option to exclude folders from Watch Folders
« on: November 10, 2017, 04:43:42 AM »
The title makes this pretty obvious, but still. Let's say that you have your Music folder as one of your watch folders, but you don't want one of the sub-folders ( as in not ALL of them) to be watched, but rather be excluded. Just simply add the option to do that.

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3371
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Add an Option to exclude folders from Watch Folders
« Reply #1 on: November 10, 2017, 11:55:28 PM »
I thought that it was already possible to do that but from the config options provided it seems not (other than manually setting the folders one at a time & disabling the scanning within the sub-folders checkbox). So afaik, the only real way to see this happen would involve a replacement library plug-in which has the support to do what's wanted (tbh the watch folders mode needs re-working so it's not reliant upon scanning things but instead responding to OS provided file change notifications).

-dro

victhor

  • Beta Tester
  • Hero Member
  • *****
  • Posts: 254
    • View Profile
    • Victhor Deviantart
Re: Add an Option to exclude folders from Watch Folders
« Reply #2 on: November 24, 2017, 10:53:09 AM »
Maybe a half way implementation (= easier - theoretically-) would be to instruct the scanner to ignore the folder containing a .nomedia file? Or it's still the same amount of work as re-doing the scanner?

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3371
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Add an Option to exclude folders from Watch Folders
« Reply #3 on: November 24, 2017, 02:20:09 PM »
It's a good idea but I don't know off the top of my head how to get a .nomedia to be accounted for with how the scanner currently works (other than some invasive api hooking which I do but try to avoid where possible). So I think it will need a replacement but I'll keep this in mind (as it sounds like something from android or something like that without me searching for it, heh).

-dro

victhor

  • Beta Tester
  • Hero Member
  • *****
  • Posts: 254
    • View Profile
    • Victhor Deviantart
Re: Add an Option to exclude folders from Watch Folders
« Reply #4 on: November 24, 2017, 02:30:35 PM »
IT IS from Android, that's where I got the idea from. Plex also has it but is more complete, you can put content inside the .ignore file and the server will consider it.

Aminifu

  • Beta Tester
  • Hero Member
  • *****
  • Posts: 618
    • View Profile
Re: Add an Option to exclude folders from Watch Folders
« Reply #5 on: November 24, 2017, 02:32:00 PM »
Well, there already is an option to include/exclude sub-folders. Then you can just add the specific folders you want. A little more work, but it gets the job done. AFAIK, there is no limit to the number of folders that can be added to the watch folders list.
Windows 10 Home 64-bit v21H2
Logitech Z906 5.1 speaker system

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3371
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Add an Option to exclude folders from Watch Folders
« Reply #6 on: November 24, 2017, 04:19:37 PM »
Aye that works though there's room to tweak how it's done :)

IT IS from Android, that's where I got the idea from. Plex also has it but is more complete, you can put content inside the .ignore file and the server will consider it.
That's interesting using other files to allow inclusion as needed.

-dro