Python fixes for PlexEmail Script

Hello,

I really miss using a simple PlexEmail Python script as opposed to something more complicated since all I need is simple emails of added content. This Python script is only broken based on the Metadata created using the new PlexMovies agent. So I am trying to modify to correctly locate the posters to upload to Cloundinary.

I tried changing the lines of code that use ‘_stored’ folder to ‘_combined’ folder since the new PlexMovies agent doesn’t store posters in the ‘_stored’ location in the Metadata folder. But that didn’t work.

But this is way way above my skill level for Python. I was hoping someone with mad kills for Python and the new PlexMovie agent and Plex Database could take a quick look and see if they can suggest changes so the script can find the poster images. Everything else with the script still works with the Legacy PlexMovies agent. But don’t want to go back to that.

I have included logs from the script showing how it works with old locations and fails with new.
Any help is really appreciated.

Chris

plexEmail(fail PlexMovies (New Agent).log (9.2 KB)
plexEmail(success PlexMovies (Legacy Agent).log (10.3 KB)
plexEmailscript.txt (97.1 KB)

The util was last updated in 2017, and access the database directly = dangerous
As such, all I can suggest is that you start to google for alternatives, like Tautulli

I had this PlexEmail script work perfectly for almost 4 years with no Db issues. I tried Tautulli for 6months and had constant issues with it, memory leaks and DoS attacks just to mention the worst. After it memory leaked so bad to make my VPS running Plex un-responsive more than once it got canned. But thanks for the suggestion.