Local TV Extras Agent

Wonderful - will have a play with it and see if I can do the same for the FreeBSD implementation as well.

I know it was mentioned at the very beginning that it was only extras per show and not per season. Has anything changed since Feb '18? Are we still limited to extras by shows and still can’t add them by season?

You can change the agent settings, so that it links extras to seasons and episodes (depending on where the files are saved). They will be properly added to the server, but not all clients support it.

There’s a list of clients, and where they support extras at the bottom of the readme on the GitHub page, here: https://github.com/contrary-cat/LocalTVExtras.bundle#client-support

The most recent change to that was iOS: the client used to only support episode extras, but now displays extras linked to shows, seasons and episodes – so hopefully it’s something they’re working on for the other clients as well.

Strange. After enabling this extension, not only the extras did not get detected, now no subtitles are shown anymore for the specific TV Series that had the extras. I tried deleting the SRTs, refreshing the metadata, adding them back and refreshing metadata again, nothing. Seems it’s broken. :frowning:

I was able to get my subtitles back by purging this extension and - I tried everything - I had to move the SRT files out of each season and put them back on. It was this or refreshing the metadata for each episode.

EDIT: I got it working by doing the following:
a) Stop PMS Service .
b) Copy the Plugin to the Plugins folder Make sure the plugin folder is mapped to the same user that Plex uses (e.g. plex:plex).
b) Start PMS.
c) Activate the agent under TVDB and make sure it’s in the following order:


d) Pick a TV Show with just a few episodes so this test goes faster. Create a folder under the show main folder, e.g. “Behind the Scenes” or “Featurettes”.
e) Put a video file in there with its original name, not e.g. -behindthescenes.mkv, just .ext
f) Refresh the Metadata for that specific show.
g) Check in Plex Web App, below the Cast section. Extra with the type matching the folder name should be there.

This agent is not working for me with the latest update to the server (Qnap). How do we know if it is the agent, server or what?

I think you’d have to check the latest com.plexapp.agents.localtvextras.log file - if there aren’t any timestamps corresponding to the last time you refreshed metadata, then Plex isn’t calling the agent for some reason; if there are timestamps with the correct date/time, but errors (or files not being found), then it’s an issue with the agent.

Since Plex doesn’t include logs from third party agents in the download from settings, you’ll have to look for it manually

They describe how to find the data directory here:

Well, I opened the directory and saw that only 1 tv show was getting the attention of updating which indicates to me that the problem is in the current newest implementation of the server. I am going to downgrade as was suggested by ChuckPa in another inquiry I had about not having all the shows library scanned when applying the rescan library. This may be a side effect of that process failing. I will downgrade and let you know the outcome.

I just finished downgrading to 1.20.1 and it had no effect in changing the outcome in scanning the library or adding the Extra content. My Plex only scans a single tv show. so, at this point the problem seems to be the server and not the plugin.

Checked the logs after running Scan files in TV (Plex Media Scanner) and it shows that all tv shows are getting some action even if its to say “no changes”. Checked logs in (plexapp.agent.localmedia) as well as (plexapp.agent.localtvextras) and only action being shown is for “Marvel Runaways”. This is the show previously indicated in the plugins logs.

So, why is it calling only 1 tv show to analyze?

I may be assuming too much, but since you only mentioned running scan files, have you done a specific metadata refresh?

Scan files will sometimes cause a metadata refresh (usually if it detects a new episode), but the most certain way is to triggre it manually.

e.g. In Plex Web, navigate to one of the shows that you have extras for, and open the more menu (three vertical dots)

Then click refresh metadata from the menu

If that works on the show in question, then you can refresh metadata for all files from the library > Manage Library > Refresh All Metadata

Yes, actually I did that first after adding the video file.

I’m probably running out of sensible things to look for now. And, since the refresh isn’t showing up on the localmedia log either, it probably is a server issue – but here are my last-ditch things to check:

  • Have extras that were previously added disappeared, or is the problem just with new shows?
  • If just with new shows, have they all been correctly matched? (you can filter on unmatched)
  • Assuming they’ve all been matched, could you check the default library agent?

Well, that seemed to do the trick. Once I ran the “match” my extras came popping up.
Thanks for your help. Since it was previously matched before I added the “Extras” I didn’t think I had to rematch the video.

Hi,
I’ve installed the plugin and enabled it in Agents settings, but I can’t get this extra to stop appearing as a alternate version of the episode.

XML for the episode has <Extras size="0"> </Extras>

@cjholding Inline episode extras are a bit tricky because they also match the pattern used in the plex media scanner.

The -extra suffix was added to make things a bit more convenient, but it isn’t one of the ones officially supported by Plex, so their scanner will pick it up as an episode.

Possible solutions to this are:

  1. change the file name to battlestar galactica (2003) - s04e12 - a disquiet follows my soul-unrated-other.mp4
  2. use a .plexignore file to tell plex to ignore all files ending with -extra.mp4 (that would probably be *-extra.mp4)
  3. use one of the alternative methods for episode extras

@contrary_cat Thanks for your help - got it working now.

In case this helps some one else, initially I renamed the file as suggested but it just vanished.
So I moved it to another folder (outside my library) and scanned for new files and emptied trash.
Then moved it back into the season 04 folder, scanned for new files and updated metadata for the entire show (not just the episode which is what I had been doing previously).

The extra is now appearing in the android (mobile) and android tv app.
Server is a Shield TV Pro.

Hi, a quick update: the agent no longer works with the latest Plex client on the Shield. At least it doesn’t for me. I tested it out by downgrading the Plex client on the Shield and the agent worked just fine, but when I upgraded to the latest version, the extras did not show up. A real shame. Come on, Plex, make this a native feature already!

1 Like

Working mostly fine for me on currently on latest Windows server, latest Windows client, latest Shield TV/Android TV client, and latest iOS client.

Looks like Nvidia Shield TV no longer shows extras at Season level. But does for Show level. :frowning:

I tried installing this on a Synology NAS with the latest linux OS and the very latest version of the plex server (Version 1.21.2.3943). I am pretty sure I unpacked the plugin package into the correct location and set the file permissions correctly (they match the other two plugins already in the folder).

But no luck. The plugin doesn’t seem to be recognised. It does look like there may be some compatability problem with the latest server versions. I installed the Webtools plugin in a similar manner and that worked straight away.