Quick Scanner Testing?

I’d like to be able to test a scanner quickly without having to relly on Plex server.



Is there a test framework that can run my scanner code in a simulation?

Not exactly. You can run a scan from the terminal without having to muck around in Media Manager: ~/Library/Application\ Support/Plex/Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Scanner

You could speed that up some more by creating an agent that returns immediately when called.



Any scanner will almost certainly use a bunch of helper functions and models built into the Media Server.

You might be able to write your own simulator by modifying your PYTHONPATH to include the appropriate directories in Framework.bundle, importing everything you need, and then calling the appropriate methods in your scanner.

Not exactly straightforward, and I doubt you’d get significant speed gains over the first method. (Feel free to prove me wrong though :slight_smile: )

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