Can I prevent Plex from scanning a specific library?

Plex is constantly scanning my Music library. On the web interface, when I go to the menu and select Cancel Scan, it does so momentarily then starts again a short time later.

It seems that when I am adding files to other libraries, this scanning process is preventing the new items from being scanned. I can Cancel Scan each time but this is becoming an annoyance.

I’m not using the Music library. I’m not listening to it, adding or removing from it, or anything. There should be no reason for it to scan this library.

I do have another Music 1 library that I am using regularly. So I’d like to keep music related scanning enabled for that library. If there’s no way to prevent it from scanning the Music library then I’ll just delete it.

Server Version#: 1.25.5.5492

You could use a .plexignore file

See: Special Keyword File/Folder Exclusion | Plex Support

Interesting. Music is a volume on my NAS (same as my Music directory) and I want to ignore every folder in that volume. Can I put the .plexignore file in the same directory as the folder I want it to ignore? Could I put .plexignore in a different directory (like Movies)?

When you put in a .plexignore file, scanning of medias will be ignored from that directory and down

Awesome! Hope it works.

Also, I just learned that CMD+SHIFT+. will toggle hidden items in MacOS.

1 Like

Negative. Still scanning my Music directory.

I have a text file in Music titled .plexignore.txt and the content of that file is as follows:

# Ignore directories called "Music"
*Music/*

Bad name!

Must be .plexignore without the .txt

Thanks.

My experience has been it does scan but ignores the media… That was a while back though, I had a folder in my music that was shared with another program (iTunes) that made minor changes to files which meant Plex was always scanning that folder.

I agree with @blackzwe that it will still scan the Library. It isn’t a useful mechanism to prevent filesystem access; it’s a useful way to prevent a few things from being added the the Library.

Additionally, if you add things to .plexignore, they will be removed from the Library.

I don’t think that’s quite what @oxjox wants.

@oxjox, you may wish to disable the Automatic Library scanning.

SettingsLibraryScan my library automatically
SettingsLibraryScan my library periodically

1 Like

Ohhh…I never thought of that, and as such stand corrected about my suggestion here :wink:

As such, and what @Volts says sadly

Yep. Still scanning Music. So, there is no way to prevent Plex from scanning a library other than to disable scanning entirely?

I only want to prevent it from scanning Music, not Music 1. It seems this isn’t possible.

I don’t think it’s possible.

Create a #feature-suggestions post. A per-Library setting of “Include this Library in automatic scans” would be useful in many situations.

1 Like

There is an autoScanMusicSections="0" flag in the Preferences.xml file. I have no idea if the flag is still being respected or if it is just a legacy flag that doesn’t do anything anymore.

1 Like

I bet that was hooked up to the old similar GUI setting.

@oxjox is it possible that any files within your Music Library are being changed by any other program?

I no longer use the Music library as I’m transitioning my meta-updated files to Music 1. I really only had it sitting as a reference for playlists, etc. So the only thing I could possibly imagine accessing Music is Plex, Plexamp, or my NAS for some scanning and backup services. I do have some sort of music/media app on the NAS (QNAP) that could be scanning the files for reference.

What I really find odd (annoying) about Plex scanning this directory is that I’m not using it. What would it be scanning for today that it hadn’t scanned over the last several years?

I won’t be able to troubleshoot this going forward. Since there’s no obvious solution, I’ve already gone ahead and deleted Music from my Plex server. I appreciate the responses. I’ll open a feature suggestion and reference this post.

Edit: Posted

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.