Bug: Plexignore makes local media assets disappear (Plex Movie agent)

How to reproduce:

  1. Create a movie library with the Plex Movie agent
  2. Have multiple versions of a movie with local media assets:
Apocalypse Now (1979)
├─ Apocalypse Now (1979).mkv
├─ Apocalypse Now (1979) [4K].mkv
├─ Theatrical Trailer-trailer.mp4
└─ poster.jpg
  1. Create a .plexignore to hide one of the versions
  2. Refresh the metadata
  3. All local media assets are gone

Note: Plex Movie (Legacy) agent works as intended.

What’s your .plexignore look like? Where is it located?

Does it help to move the Trailer into a “Trailers” subdirectory?

I appreciate you trying to help but this is not a user error, it’s a bug in the scanner.
But to answer your question, the .plexignore only contains that single filename and no, it does not matter if the extras are inline or in subfolders.

I didn’t suggest it was user error.

I asked where the .plexignore is located because I’ve experienced similar behavior when .plexignore is in the same directory as the media files.

Try adding the filename to a .plexignore at the root of your Library.

I thought it was possible that moving Extras to a subdirectory would also avoid the issue.

Bump.
Also would like to add that .plexignore should be able to hide extras as well. If you need an example why this could be useful (it’s should’ve already been working but still): Let’s say there are multiple trailers on a disc and you want the “Play Trailer” button to play your favorite trailer. In that case, it would be easiest to just hide all other trailers via .plexignore.

Bump. Three things I’ll add to this:

  • Only affects the new Plex Movie agent, the old (Legacy) works as intended
  • Only breaks when the .plexignore actually matches (meaning it’s not just the file per se)
  • Also messes up with other local media assets like posters

Bump.

Bump.

Respectfully,

  1. It’s not a bug in the scanner.
  2. It’s a problem with how the media is structured.
Apocalypse Now (1979)
├─ Apocalypse Now (1979).mkv
├─ Apocalypse Now Redux (2001).mkv
├─ Theatrical Trailer-trailer.mp4
└─ poster.jpg

and

One is the extended of another and, as such, qualify as separate entities.

Please observe the new agent and scanner with proper structure

[chuck@lizum movies.2034]$ ll Apoc*
Apocalypse Now (1979):
total 8
drwxr-xr-x  2 chuck chuck   47 Dec  2 22:38 ./
drwxr-xr-x 64 chuck chuck 4096 Dec  2 22:39 ../
-rw-r--r--  1 chuck chuck  290 Dec  2 22:38 Apocalypse Now (1979).mkv

Apocalypse Now Redux (2001):
total 8
drwxr-xr-x  2 chuck chuck   53 Dec  2 22:39 ./
drwxr-xr-x 64 chuck chuck 4096 Dec  2 22:39 ../
-rw-r--r--  1 chuck chuck  302 Dec  2 22:39 Apocalypse Now Redux (2001).mkv
[chuck@lizum movies.2035]$

Screenshot from 2021-12-02 22-36-59

With the movies properly isolated , local media assets will be properly associated with the parent title.

You’re missing the point here. I have updated the post. (Hint: This has nothing to do with “different cuts”).

I’m sorry I missed what your intent was what is the point please?

I wasn’t looking at the different cuts as much as I was looking at two movies, one inside the other and the problem that causes

The point is that the intent is irrelevant. The scanner fails to match extras once another media file (an untagged extra if you will) is being matched by .plexignore. This is clearly a bug and should be treated as such. Also, as you can see by my note above, this is a regression from the previous “Plex Movie (Legacy)” agent.

As a workaround, I have given all media files that I want to be hidden an additional suffix (e.g. Apocalypse Now (1979) [4K].mkv.ignore). Once this issue is resolved, I can then simply remove the extra extension, and let it get matched (and subsequently hidden) by .plexignore again.

I will attempt to recreate and submit

but please be advised –

Legacy is dead. it’s not being developed further.

If there’s a deficiency in the new scanner/agent – we can address it.

Show me what you have and why you think it should work as written,

As for the extension - The scanner will ignore any file extensions which are not normally media files. e.g. .TXT is not normally a media file so will be ignored.

I missed this bit the last time I read your comment (probably an edit). Is this a request for clarification? If it is, I really have no idea how to make myself clearer. Hopefully you will figure it out from the OP. I can of course provide more examples.
As for the why, it doesn’t really matter – the scanner should not fail regardless.

Yeah I know, I was just providing an example (and .ignore certainly makes more sense than .txt). Thinking about it, your example is kinda unsafe because all would go to sh*t if I’d be looking for something with e.g. find /mnt -name \*.txt -exec grep -H 123 "{}" \;.

I couldn’t reproduce this initially.

After creating the .plexignore, if I Scan Library Files and then Refresh Metadata, I can reproduce the behavior.

If there are multiple Versions of a movie in a directory, and .plexignore is used to exclude one of them, some types of Local Media Assets from that directory will also be ignored. Posters and Trailers are both ignored; Subtitles aren’t.

Reproduction:

/mnt/movies.tst/Ghostbusters % tree -a .
.
├── Bill\ Murray-interview.avi
├── Ghostbusters.en.srt
├── Ghostbusters [1080p].mkv
├── Ghostbusters [480p].mkv
├── poster.jpg
└── Trailers
    └── Theatrical\ Trailer-trailer.mp4

### At this point, all items are in Plex as expected.
### Create the .plexignore:

/mnt/movies.tst/Ghostbusters % echo "Ghostbusters [480p].mp4" >> .plexignore

Back in Plex, Scan Library Files and Refresh Metadata.

Ghostbusters [480p].mp4 is now excluded from Plex, as expected. However,
The Trailer and Interview are both missing.
The Poster is missing.
The Subtitle is still present.

This can be triggered without using .plexignore at all.

.
├── Ghostbusters\ [1080p].mkv
├── Ghostbusters\ [480p].mkv
└── Trailers
    └── Theatrical\ Trailer-trailer.mp4

At this point all files are in Plex as expected. Both Versions and the Trailer.

Now remove Plex’s read permission from one Version:

/mnt/movies.tst/Ghostbusters % chmod go-rwx "Ghostbusters [480p].mkv"

Now Scan Library Files and Refresh Metadata.

Ghostbusters [480p].mkv is excluded, as expected.
But the Trailer is missing too!

If I may add here ?

I have submitted a bug report about the scanner.

The report shows that when the scanner encounters an error in a directory, it stops processing the directory.

It unfortunately stops processing after that too – hence the bug report

1 Like

Update?

This is resolved.

I’ve seen in 1.25.6 where the scanner will skip the directory and continue on Synology systems (where this occurs most frequently)

  1. I find it disappointing that neither you nor another Plex employee took the 10 seconds it would’ve taken to let me know that it has supposedly been fixed considering I was the one making the report. Also no mention in the changelog.
  2. It’s not even fixed. If I uncomment the second video file my trailer will vanish. That’s what I meant by “no communication”. I could’ve told you that months ago.