I have a lot of movies which have sample files. I don't want the sample files added to my movie section. I just want the main movie file added, else when adding a large new collection things get very messy to sort out.
Lots of my sample files are stored in a subfolder "sample" and the sample files within are ignored properly and not added, which is good!. However, I also have sample files which reside next to the main movie file and have the word sample added to the name. I was under the impression that files that have the string sample added to the file name are not supposed to be added? The following example confuses me greatly:
When added, 1 of the 2 sample files is added the other is not. Why is this??
I don't want either to be added, I have the problem that many sample files with the string "sample" in them are still added to my movie section, which is undesirable.
Would it be possible to have a movie scanner that ignores all files with the word "sample" in their filename, and that are smaller than for example 400mb?
Would it be possible to have a movie scanner that ignores all files with the word "sample" in their filename, and that are smaller than for example 400mb?
This is how it works now, except the size threshold is 300MB. This was based on a somewhat informal poll of folks with large libraries of high quality media. The idea was to pick a number that was likely to be smaller than most TV episodes (some of which correctly contain the word "sample" in the episode title) and larger than actual samples. How big is the one that's getting picked up?
I was under the same impression, I scanned my large library a long time ago and renamed the then detected sample files by simply adding the word sample into the filename, and all was good.
But now with a new install on my windows server with a new PMS version and a complete rebuild, these sample files are now sometimes (not always) detected and they are UNDER 200mb. I think they shouldn't?
I added the 2 sample files to show you this weird behavior.
It seems that one of the 2 sample files is "matched" and then added while the other is not. While they should be both ignored? I can't explain it. Is the scanner not working correctly or is it something else?
my scanned library of 2100+ movies is riddled with sample files which is very frustrating to sort out. I hope you can help. I think something is not working correctly.
Interesting, yeah, if they're under 200MB they should definitely be ignored by any version of the Scanner (I'm assuming you're using the default Scanner). The only thing I can think of is that somehow the sizes of those files are being misreported by your system, but I have no idea why that would be the case.
Can you go to your Plex/Plex Media Server directory and run PlexScriptHost.exe, then type the following:
>>> import os
>>> os.path.getsize('c:\path o\problematic sample file.mkv')
(replacing that with the real path obviously) and let me know what it says?
>>> os.path.getsize('c:\add this folder\a main movie folder est1.mkv')
Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files (x86)\Plex\Plex Media Server\python26.zip\genericpath.p
y", line 49, in getsize
WindowsError: [Error 123] De syntaxis van de bestandsnaam, mapnaam of volumenaam
is onjuist: 'c:\x07dd this folder\x07 main movie folder est1.mkv'
>>>
If that's your actual sample file, it's being (correctly, I'm assuming) reported as only 113MB, so I have no idea why the Scanner would be picking it up. What's the exact name of the file?
Just to be sure, what you asked: >>> os.path.getsize('c:\path o\problematic sample file.mkv') never works, then I get the above 1st error. You can try it yourself in windows I guess.
I was curious how to get a working output so I put a test1.mkv file in the root and input: >>> os.path.getsize('c:\ est1.mkv') ,that makes it throw no errors and a correct response. I don't know python, but \\ seems odd to make it work.
>>> os.path.getsize('c: est1.mkv') with 1 \ does not work.
So even if the size limit is eventually fixed, would the scanner still work properly? (detect the file sizes?)
Yeah, sorry, I just typed that out without testing it :) What you did is fine.
The Scanner updates were pushed, so you may already have them. Try doing a deep scan of the movies section and see if the samples are still getting picked up.
Yeah it can take up to 8 hours to get the new bundle, depending on when your system checks for updates. Let me know if it's still not working for you though.
Yeah, sorry, I just typed that out without testing it :) What you did is fine.
The Scanner updates were pushed, so you may already have them. Try doing a deep scan of the movies section and see if the samples are still getting picked up.
I am currently using Plex 0.9.7.28 on Windows 7, and I have the same problem as OP. Samples files greater than 100MB are picked by the movie scanner.
I'm guessing that the fix is only avaliable for PlexPass users, currently?
Nope, this has nothing to do with PlexPass. Exactly how large are the samples that are being picked up?
102MB, 108MB, 100MB. The 100MB file is just 100MB, at 104,985,740 bytes.
I have other movies, which also have sample files in the same directory as the movie file, which haven't been picked up. These samples have sizes 49MB, 50MB, 97MB.
Also, this is a pretty new install of Windows (couple of days), and I downloaded PMS from the main website. Not sure if there are more latest releases on sourceforge or a similar website?
EDIT: Never mind. I did a deep scan and the samples just disappeared. Weird. Thanks anyway!
EDIT: Never mind. I did a deep scan and the samples just disappeared. Weird. Thanks anyway!
Ok, I'm guessing they may have been leftover from the (long) period of time between when I thought the update had been pushed, and when it was actually pushed. Sorry about that :)
Sorry to dredge up an old post, but I actually want to do the opposite of this. I have made some samples of some files I am having issues with and the Plex Ninja helping me would like me to add them to my plex and makes sure the issue is in the sample files.
So how do I get my Plex to recognise such small movie files?