[REL] Extended Personal Media Shows Agent

Who are you? Santa Claus?
Your are great!

Thank you so much for this plugin. I use for home movies and an education section, and it works great.

I know I can add my own poster artwork, but the way I have my files organized ends up with a lot of home movie “tv series” groups with maybe only one or two “seasons” each, so I have a lot of blank posters. It would be tedious to make artwork for each one. I do see thumbnails for each “episode,” but is there any way to get these automatically generated thumbnails at the season or series level? That would be good enough for me. Is this a limitation of Plex itself? I’ve tried switching the agents around to no avail.

@lovefall I added support to the agent for show .summary files. See the first post for details on how to add. Adding season summaries through the API does not appear to be working. I will see if I can get a bug report filed with Plex (added a post here).

@tikilab I did some quick searching through Plex’s documentation and I couldn’t find a way that you can get access to the generated thumbnails.

@mjarends Thanks, good to know I’m not missing anything. :slight_smile:

All - I discovered an issue with the update that I made on 2/28/2016. I have uploaded a new version of the agent that fixes the issue. In addition I added an option to enable/disable debug logging and I added more options for the summary file formats. I will update the first post with the details.

Please let me know if you have an issue with the update. Thanks.

Hi,
I can´t get the .summary file info to show in Plex.
I have tried both show.summary and (show title).summary.
Both scanner and agent is extended personal media shows and local media assets is ticked.

What am I missing? show.jpg, season01.jpg and background.jpg works just fine.

The update: before I made your plugin as a .bundle but this time I copied the folder Series to Scanner folder, which was empty. Is that correct? Should´t the update .py-file be a part of the bundle somehow?

/Niklas

lovefall

I am able to get the show.summary file to work, but I have found that there is one caveat which appears to be part of the Plex library scan logic. If you do a scan, but have not made changes to the media files (added or removed), the library scan never runs the Agent or Scanner you selected. So if all you did is add/change a poster/image or summary file, the scan will not pick these up until a media file is added or removed for that show.

Try the following to see if this is happening to you.

For the show with which you are having an issue:

  1. Move an episode media file out of your Plex media directory
  2. Run the Library Scan
  3. Move the episode media file from Step 1 back into your Plex media directory
  4. Run the Library Scan

This should now display your show summary file text. Note: After Step 4 you may have to close Plex in you browser and re-open it in order to see the change (refreshing my browser doesn’t always pick up all the changes I made).

Note 2: I have not been able to get the Season summary file text to display. But this appears to be an issue with Plex, since I see the summary text stored within the Plex metadata files.

I hope this helps.

@edwdecarlo is right. You either need to add new media or you can refresh the entire library or an individual show from within the Plex web UI. The metadata agent doesn’t rerun because the .summary files are not tracked by Plex.

Also the plugin supports season summary files however there is a bug in the Plex API that prevents plugins from being able to set the season. summary.I linked to my bug report in a previous post. Go like it/add comments to get more focus on it.

I have done this and it doesn´t help.
I´m not sure I have the update in place. Adding it to the scanner folder doesn´t feel right. How can I check this update is working?
Or should .summary file work anyway?

Only the metadata agent was updated. You don’t need to update the scanner. The Scanner folder should only have a single file in it.

@lovefall

Here is how to install the most resent version of the plug in.

Download will give you a fill called mjarends-extendedpersonalmedia-agent.bundle-147525327204.zip. Extract this zip file, and this will give you a directory named mjarends-extendedpersonalmedia-agent.bundle-147525327204. Rename this directory to: ExtendedPersonalMedia-Agent.bundle

Now copy ExtendedPersonalMedia-Agent.bundle to your Plex plug-in directory. Note: You may want to remove the ExtendedPersonalMedia-Agent.bundle directory already in your plug-in directory before you copy the new version.

Thank you guys,
I´m sorry to say that I still have no luck. I have the latest metadata agent and the episodes is named right, thats great.
But I can´t have the .summary file content to work and I can´t even have the show.jpg, background.jpg or banner.jpg to work.

I create a TV-show, adds the right folders and in advanced I have chosen scanner Extended personal media scanner and agent Extended personal Media Shows.
I have tried this numerous times without no luck.
In settings for server I have chosen Extended Personal Media Shows and also Local Media Assets for TV-shows.

What is also strange is that I don´t get a folder called logs although I have chosen Enable debug logging so I can´t attach any log-file.

Hopefully I haven´t done anything completely stupid but it still doesn´t work for me…

@lovejoy

The .summary is handled by the Extended Personal Media Agent, but the show.jpg, background.jpg and banner.jpg are handled by the Plex Local Media Agent. So if both are not picking up your files, it is probably how you have your directories structured. I am fairly new to Plex myself and struggled through what can and cannot be done with the TV Show directory structures before I figured this out. If you provide the following, I can probably identify what is happening. Note: i am leaving on a business trip, so I may not get to look at this or reply for a couple of days.

Please provide:

  1. Screen shot of your the Edit Library - Add Folders section for your TV Show library
  2. Screen shot of the directory structure. Be sure to expand all the sub directories and indicate where your show.summary and show.jpg are stored.

Also, the logs are stored in the Logs directory which is in the same directory as the Plug-ins directory. In Logs, open the PMS Plugin Logs. You want to look in the following files:

com.arendshome.plex.agents.personalmedia.log (this is the Extended Personal Media Agent log)
com.plexapp.agents.localmedia.log (this is the Local Media Agent log, which handles the images)

If you have these, provide these with your screen shots.

Question in case anyone here can help out. I’ve set this up for my Wife’s workouts (She has a ton!) and it’s working great so far (only added 1 video so far).

Is there a way to have plex just ignore the “season” when there is only 1 season? In XBMC there was a setting to have it go directly to the episodes if there was only 1 season in a show. I’d like it to work like that for the workouts since they obviously don’t have any more than 1 season and it’s “odd” to have to go through the season to get to the workouts.

@sirmeili As far as I know there isn’t an option to skip the season in the Plex Web or any of the Android clients that I use.

@sirmeili said:
Question in case anyone here can help out. I’ve set this up for my Wife’s workouts (She has a ton!) and it’s working great so far (only added 1 video so far).

Is there a way to have plex just ignore the “season” when there is only 1 season? In XBMC there was a setting to have it go directly to the episodes if there was only 1 season in a show. I’d like it to work like that for the workouts since they obviously don’t have any more than 1 season and it’s “odd” to have to go through the season to get to the workouts.

I’m sure there’s a feature request for this.

I am using this for my workout videos. I am using the Title - CxEx - Name format. I am having an issue where C1E2 and C2E2 are listed as separate titles. I initially tried with all of the episodes in a single title folder. I then tried creating subfolders for each chapter. The results were the same.

@littlewing1977 Be sure you have both the Extended Personal Media Scanner and meta data agent installed and that your media library has both of these selected. The scanner is available here: https://forums.plex.tv/discussion/88982/rel-extended-personal-media-scanner/p1

If you have both the scanner and metadata agent installed correctly then the next step would be to enable debug logging for the metadata agent plug, add your media and then post the logs here for me to look at.

@mjarends First of all, let me begin by thanking you for writing this. It is exactly what I have needing for the last few months.

I seem to be missing something. I followed the installation instructions in detail from:


and

I have a Directory with the following files in it.

/repo/Videos/Test/Kezia noble
Kezia noble - 2016-04-06 - How to attract shy girlsmp4.jpg
Kezia noble - 2016-04-06 - How to attract shy girlsmp4.mkv
Kezia noble - 2016-04-06 - How to attract shy girlsmp4.summary
Kezia noble - 2016-04-19 - The Best Places To Meet Womenmp4.jpg
Kezia noble - 2016-04-19 - The Best Places To Meet Womenmp4.mkv
Kezia noble - 2016-04-19 - The Best Places To Meet Womenmp4.summary
Kezia noble - 2016-05-04 - ONLINE DATING - 5 tricks to help you get results.jpg
Kezia noble - 2016-05-04 - ONLINE DATING - 5 tricks to help you get results.mkv
Kezia noble - 2016-05-04 - ONLINE DATING - 5 tricks to help you get results.summary

I then create a library that points to /repo/Videos/Test/ and I select “Extended Personal Media Shows” as the Agent. I also have “Enable debug logging” checked. I will see Plex enumerate the files and they show up without the metadata. When I look at the log with ‘tail -f’ it is madly scrolling with the following messages…

2016-05-21 21:16:20,911 (7fd68cff9700) : INFO (sandbox:19) - findFile :: going up a directory
2016-05-21 21:16:20,913 (7fd68cff9700) : INFO (sandbox:19) - findFile :: new directory path /
2016-05-21 21:16:20,914 (7fd68cff9700) : INFO (sandbox:19) - findFile :: looking in parent directory /
2016-05-21 21:16:20,914 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //Kezia Noble-S2016.summary exists
2016-05-21 21:16:20,915 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //Kezia Noble-S2016.summary does not exist
2016-05-21 21:16:20,916 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //Kezia Noble-s2016.summary exists
2016-05-21 21:16:20,917 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //Kezia Noble-s2016.summary does not exist
2016-05-21 21:16:20,919 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //Kezia Noble-C2016.summary exists
2016-05-21 21:16:20,920 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //Kezia Noble-C2016.summary does not exist
2016-05-21 21:16:20,921 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //Kezia Noble-c2016.summary exists
2016-05-21 21:16:20,922 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //Kezia Noble-c2016.summary does not exist
2016-05-21 21:16:20,923 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //season-2016.summary exists
2016-05-21 21:16:20,925 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //season-2016.summary does not exist
2016-05-21 21:16:20,926 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //chapter-2016.summary exists
2016-05-21 21:16:20,927 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //chapter-2016.summary does not exist
2016-05-21 21:16:20,928 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //S2016.summary exists
2016-05-21 21:16:20,929 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //S2016.summary does not exist
2016-05-21 21:16:20,930 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //s2016.summary exists
2016-05-21 21:16:20,931 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //s2016.summary does not exist
2016-05-21 21:16:20,932 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //C2016.summary exists
2016-05-21 21:16:20,933 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //C2016.summary does not exist
2016-05-21 21:16:20,933 (7fd68cff9700) : INFO (sandbox:19) - findFile :: determining whether file //c2016.summary exists
2016-05-21 21:16:20,934 (7fd68cff9700) : INFO (sandbox:19) - findFile :: file //c2016.summary does not exist

and it repeats forever and is crazy fast. My only solution is to ps the script and manually kill it. Then I will see the “Finished Processing…” message hit the Plex screen.

I suspect this isn’t a wanted behavior regardless of what I might be missing related to file structure or file naming, so I thought I would let you know.

Any ideas on what I might be doing wrong?

Thank you ahead of time. Really appreciate you creating and supporting these scripts.

@mmicire Thanks for the log. It’s definitely unwanted behavior. It looks like you are running on Unix/Linux. I fixed the the same issue on Windows but it looks like it is still an issue on Linux/Unix. Unfortunately I don’t have a Linux/Unix box to test on. I will try to get a fix uploaded tonight but you may need to be my tester.

You didn’t mention it above but I wanted to make sure that you also have the Scanner on your library set to “Extended Personal Media Scanner”.