Plexignore not working in Windows

So I’ve been going crazy trying to figure this out. I finally gave up and here I am. Any .plexignore file (and lots of instances of “special” characters … by which I mean “not special at all”) are preventing folders from being scanned. If I remove the .plexignore file then it scans perfectly. The same scanner+agent looking at the same folder works flawlessly on linux.

Here’s an excerpt of the Plex Media Scanner.log:

Apr 13, 2022 16:18:52.969 [10132] ERROR - Error in Python: Running scanner:
Traceback (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-e071c3d62\Scanners.bundle\Contents\Resources\Common\VideoFiles.py", line 191, in Scan
    Filter.Scan(path, files, mediaList, subdirs, video_exts, root)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-e071c3d62\Scanners.bundle\Contents\Resources\Common\Filter.py", line 109, in Scan
    ignore_list = glob.glob(pattern)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\glob.py", line 27, in glob
    return list(iglob(pathname))
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\glob.py", line 63, in iglob
    for dirname in dirs:
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\glob.py", line 63, in iglob
    for dirname in dirs:
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\glob.py", line 64, in iglob
    for name in glob_in_dir(dirname, basename):
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\glob.py", line 83, in glob1
    return fnmatch.filter(names, pattern)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\fnmatch.py", line 56, in filter
    _cache[pat] = re_pat = re.compile(res)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\re.py", line 194, in compile
    return _compile(pattern, flags)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\re.py", line 251, in _compile
    raise error, v # invalid expression
error: bad character range
Apr 13, 2022 16:18:52.969 [10132] ERROR - Error scanning directory Lostorage Incited WIXOSS [anidb-12087].

Example .plexignore file:

Openings & Endings/*

or even easier:

Bluray Extras/*

I’ve got a complete copy of my database that I moved to a new windows server, copied the configurations, everything. Then I mapped a drive and scanned it into the library using the instructions.

To Recap:

  • 2 Servers looking at the same data.
    • Windows and Synology
    • Version 1.25.8
  • Windows server will not scan any folder containing a .plexignore file.
    • the Scanner.log shows a stack trace and the folder is skipped.
  • Linux server scans perfectly.

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