[REL] Extended Personal Media Shows Agent

Hi @mjarends, first I want to say thank you for making such a great tool! I’m running into a little trouble and wonder if you might have any ideas. I’m trying to set up some courses sorted by lessons, and so far that part is working fine: I have the course as the Show, each lesson as a season, and each part of the lesson as an episode. However, I cannot get the seasons to show a Title, and my .summary and .metadata (I did enable those in the settings) files don’t have any effect no matter what I do. I am running my Plex server off a Synology NAS though, do you think it might be a compatibility issue?

I’ve been using this agent for years, but recently lost my plex library and had to start over. When I did, my episode/season sorting stopped working as intended.

I use this mainly for sports videos. Due to seasons being split across calendar years, it’s not as easy as sorting by date. An example of my episode sorting/naming convention is as follows:

Basketball/S2020/E14 - 2019-12-26 - Blue vs White.ext

This worked perfectly until this new library. Now it sorts by date and ignores the episode number, shifting episodes to different seasons.

The above file used to be in S2020, but now shows in S2019.

Any advice on how to correct this?

Thanks.

Hi. Thanks for creating this, as while I have been using plex for years never bothered (until now) to try and use it for non-standard tv or home movies.
I have been able to install ok, but am having trouble getting the show to display as expected.
The folder structure added to the library is like this:
Root:
------> State School Spectacular:
-------------------------------------->s2016e01 - 2016-12-03 - NSW Schools Spectacular.mp4
-------------------------------------->s2016e02 - 2016-12-04 - Victorian State Schools Spectacular.mp4
-------------------------------------->s2017e01 - 2017-12-16 - NSW School Spectacular.mkv
------> Adele:
--------------->2017-10-12 - Adele Live In New York.mp4

In Plex.
I see the “State School Spectacular” show, which has a 2016 Season and a 2017 season. This is as expected :slight_smile:
However I don’t see Adele.
I found that if I change the name of the Adele file to “s2017e01 - 2017-10-12 - Adele Live In New York.mp4”, then it will show, but as a duplicate of the 2017 State School Spectacular episode.

Why does this happen and is there a way for it to honour the folder structure?
thanks in advance.

@jmricker Currently the index number is only 2 digits (max 99). If you haven’t tried it already, episode number 0 or 00 will work.

@katili Not sure if you have resolved this yet. If it is still a problem you could post the logs and I will take a look.

@dtaylor24 I just tried this exact same test path on my test system and I seeing the episodes appears in the correct season. Can you verify you have the correct scanner and metadata agent set on the library. If you do send me the logs (see README) and I will take a look.

@nigel_murden_com_au Can you verify that both the extended personal media scanner and metadata agent are set on your library. If they are can you send me the logs so I can take a look. Thanks.

@nigel_murden_com_au I just released an update that added support for the path that you described in your post. Please update both the scanner and metadata agent and let me know if your issue has been resolved.

Could someone help me with summary files? I’ve included *.summary files in two series but none shows up in Plex.

Also, I’ve enabled debug logging, but I don’t see any com.arendshome.plex.agents.personalmedia.log in ~/Library/Application Support/Plex Media Server/Logs/PMS Plugin Logs

I figured out my issue.

My Scanner folder looked like this:

Scanners/mjarends-plex-scanners/Series

I reread the README and noticed that the Series folder should have been placed directly into the Scanners folder. Did that, restarted Plex, changed the scanner for the library.

Thanks for your help.

@johan456789 What OS are you running on?

@dtaylor24 Thanks for the update. Glad you got it figured out!

@mjarends I’m running macOS 10.13.6 (17G14019).

Official documentation has them under

~/Library/Logs/Plex Media Server/PMS Plugin Logs/

Thanks. I have found the logs com.arendshome.plex.agents.personalmedia.log (168.4 KB) . The documentation have the wrong path then. I’ve sent a pull request.

One of the shows’ summary does show up later and I have no idea why. The other still doesn’t. I can see from log it has found CS109.summary, read the correct text and updated, but it’s still empty in Plex. Do I need to refresh or do something in Plex? I tried scanning library and refresh metadata and it still doesn’t work.

@johan456789 Sometimes the refresh of data is a little strange. If refreshing metadata from within UI doesn’t work you sometimes need to move the media out of the library, scan for files to have Plex remove it and then move it back and perform another scan. This should hopefully clear up your issue.

If it doesn’t you can DM the logs and I can take a look.

I finally got around to implementing the features that you had requested.

If you have some time can you beta test the updates. You will need to update both the scanner and metadata agent to the versions linked to below and update your metadata files used the linked to examples above.

Let me know if you have any questions or run into any issues. Thanks!

1 Like

I did some basic testing of the new genres support on the ‘date-format-update’ branch, appears to work fine for me. It looks like you’ve added (or are in the process of adding) season metadata support, but I don’t see where in the readme it shows how to name the metadata file for a season. Even if it’s just the same as for a summary file it would be good to state that.

My particular use case doesn’t use too many of the new features but I’ll see if I can test a few more.

Thanks for the feedback. I had missed adding the season metadata file to the README. It’s been updated now.

Is there a way to handle Cast (actors, directors), Genre, and Studio, ideally from mp4 tags which you wrote are not currently supported by the scanner but “may be added in a future release if there is enough demand for it.”

I’m looking for the best way to manage in Plex martial arts tutorials that I have already tagged by instructor and technique.

Currently I don’t have plans to add support for reading MP4 tags. This metadata agent does work with the Local Media Assets metadata agent. I’m not sure if that agent supports reading those tags though.

If there is a better version of Local Media Assets plugin I would be open to adding support for that plug-in to mine.