Its rough but it works on my files. Its extracts title, year, content rating, tagline (comes from short description), summary (from long description), studio (from tv network atom), and imbd (from Tv Episode ID). For fields with multiple items it will pull out the actors, directors, and genres. For some reason make sure the first letter is Capitalized or it gets cut off and separate each with a comma. Also it only pulls actors names not role or thumb.
Weak points does not extract cover art, yet: working on it. Also since I have a deficiency getting paths into terminal correctly and file with a apostrophe in it will not scan.
Sorry, but I don’t know if I understood at all. That rough extract tool does extracts info fields as title, year, actors…from MP4 and M4V files. But you don’t explain anything about how come I can introduce that info in to Plex9. Is it possible to do that or just extraction?. Could you explain how can introduce the metadata info in Plex9, if its possible? Thanks.
Thanks, good work! I'll test it asap - I have all my content in M4V containers, so for me this important :)
However, I know that the devs will include this functionality in the PMR - hopefully soon, as the basis for that is already in place. I don't know what their strategy is, though. Having an regular agent like the one you are coding, allows for the M4V metadata to be prioritized vs online and local (NFO) metadata (in "Info Provider Settings").
It does it. Put in the the plug ins folder, restart PMS, then select it in the Info Provider Settings and moved towards the top of the list. Then plex will use the metadata.
Okay I need some help getting this to extract the poster. I set the agent to extract the art inside the file to the folder where the movie is in, which works fine. Then I set up to use the first image as the poster and if a second as the fanart, which also works. Then delete the created images, which works but currently disabled. But something strange is happening with the timing. When you add the movie for the first time the artworks files are created and are linked in the PMS but there is no image. Just the default Plex image. Now here is where it get strange, if you leave the images in the folder and hit refresh the poster and fanart show up in PMS customize sections, so the links are good.
My question to developers since the images are created during the metadata agent phase does this somehow not allow them to be used during the same scan process (does the scanner make a list of files in the folder once it starts scanning for use). With my script if the files are there before the scan starts everything is fine, they get used the way I planned, but if not I get default icons instead.
Any help would greatly be appreciated.
Chris
In the PMS metadata combined folder for a movie, for example:
/Users/tv/Library/Application Support/Plex Media Server/Metadata/Movies/3/acef553f28316568fb7cda9db20118662f7eaab.bundle/Contents/_combined/posters
There are generally several symlinks to the various posters generated by metadata agents. most are viewable by double clicking on them in finder and display in Preview as images. The one for your poster shows as a script:
For example:
<open file '~/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/MP4\ Extractor.bundle/Contents/Resources/AtomicParsley /Volumes/Media/Movies/Good\ Luck\ Chuck/Good\ Luck\ Chuck.mp4 -t', mode 'r' at 0x18a8cc8>
My guess is that this file needs to be an actual image. But then I don't know anything about plex, and I'm just making an observation based on how the other agents seam to provide images. My guess is that when PMS reads your agent's output it reads this file literally instead of running it as a script, or whatever it is meant to do.
I hope you find this of some help as I would REALLY like to use my own metadata in Plex, the servers get it wrong a bit too often for my taste, and I have some obscure titles.
I just tried this agent and it is extracting tags just fine. I’ll try adding a poster to one and see if I can help any with that as well.
Any updates?
I have not looked at the scanner in a while (long while using nfo agent now) but there seems to be a renewed interest; so I will give it a once over and testing the next day or so to fix any bugs that have developed with updates. When I last updated it it would extract the metadata and enter into plex just not the cover art.
Chris
Awesome!
Looking forward too.
We’re updating the local media agent to read MP4 data, just need to test a bit more.
So if we want the local media agent to gather thumbnails and fanart BUT NOT MP4 tags, we are out of luck? :)
I would prefer separate agents for local media assets and tags...
Even more awesome-uberness!!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.