[REL] Extended Personal Media Shows Agent

I was able to reproduce the issue in my test environment. Thanks for alerting me to it. I have checked in a new version of the meta-data agent that should resolve the issue for you. Please update and let me know.

I also updated the scanner, however, the multi-threading issued doesn't affect it because it's only single threaded.

Looks fine now. Thanks.

I am wondering if anyone can help me with an issue I have having with the agent. It does great as to sorting by episode # and titles by filename but it does not fill in the date in the file name with the "originally available" meta tag in plex.

![post-52368-0-36569600-1432417234.png|689x360](upload://fDrpQgyuxqzpY6WsPAlkbXI3psW.png)
Ā 
I would like it to auto file that as I like to see the date the video was originally recorded and how old my daughter was.
Ā 
I have my filenames setup as
Ā 
![post-52368-0-72719200-1432417305.png|620x500](upload://8cyG7ykdEwDGFEFBCIQwyqgoCzI.png)
Ā 
If I do filenames without "S2015E0*" it filles the "Originally Available" tag just fine but then I lose the ability to have episode numbers.Ā 
Ā 
Any help is appreciated. Thanks

CyC,

Currently the scanner/metadata agent does not support the format above because it actually combines both the episode-based and date-based formatting in the same file name. The date-based approach automatically creates episode numbers from the dates within the file. I'm not sure if you have tried that approach but that is how I have all of my home videos named.

I do like the idea of combining both formats so I will give some thought on how I could support this format within the plugin. I'll respond back here with an answer in a few days.

Cyc,

I added support for the following file name patterns. You will need to update the scanner and metadata agent to take advantage of the updates.

\Show Title - s2012e09 - 2015-12-31 - Episode Title.mp4
\Show Title - s2012e09 - 12-31-2015 - Episode Title.mp4
Show Title\s2012e09 - 2015-12-31 - Episode Title.mp4
Show Title\s2012e09 - 12-31-2015 - Episode Title.mp4
Show Title\s2015\e09 - 2015-12-31 - Episode Title.mp4
Show Title\s2015\e09 - 12-31-2015 - Episode Title.mp4
Show Title\e09 - 2015-12-31 - Episode Title.mp4
Show Title\e09 - 12-31-2015 - Episode Title.mp4

oh man awesome! thank you very very much!

It looks like there is a limit of 9 for allowing multiple episodes per day for date based series.

/Sports
   /NFL
      /2013
         2013-01-06_1 - Patriots Vs Giants.m4v
         2013-01-06_2 - Houston Vs Minnesota.m4v
         2013-01-06_3 - Oakland Vs St. Louis.m4v

Using ā€œ_10ā€, seems to overload the episode number way to the end of the list, even if it’s actually early in the year.

EDIT: Worked around this by zero-padding the episodeIndex in the scanner, which has the side effect of making the Episode numbers even larger, but preserves order.

    episodeIndex = format(episodeIndex, '02')
    self.episodeNumber = int(dayOfYear + str(episodeIndex))

Thanks for the update. I will increase the size within the plug-in. I hope 99 episodes in one day is enough though.

I have update the scanner and metadata agent plugins to allow episode indexes up to 99. I was also going to point out that the plugin does support combining episode numbers and dates together in the same file name in case you wanted to move away from using the index numbers after the date. See the first post for details on the episode/date format for files.

I’ve got a problem with my episodes getting a null value instead of a episode number, thus resulting in the episodes getting sorted in alphabetical order. They have gotten the season number right from the year though.

Below is an example of my file naming. is there something wrong with that? Or could it be something else? I’m currently running plex on Ubuntu 15.04.

./2016-02-01.Mountain Top Snow Battle _ Dude Perfect/Dude Perfect.2016-02-01.Mountain Top Snow Battle _ Dude Perfect.summary ./2016-02-01.Mountain Top Snow Battle _ Dude Perfect/Dude Perfect.2016-02-01.Mountain Top Snow Battle _ Dude Perfect.mkv ./2016-02-01.Mountain Top Snow Battle _ Dude Perfect/Dude Perfect.2016-02-01.Mountain Top Snow Battle _ Dude Perfect.jpg ./2016-02-01.Mountain Top Snow Battle _ Dude Perfect ./2015-12-07.RC_Edition___Dude_Perfect/Dude_Perfect.2015-12-07.RC_Edition___Dude_Perfect.jpg ./2015-12-07.RC_Edition___Dude_Perfect/Dude_Perfect.2015-12-07.RC_Edition___Dude_Perfect.summary ./2015-12-07.RC_Edition___Dude_Perfect/Dude_Perfect.2015-12-07.RC_Edition___Dude_Perfect.mkv ./2015-12-07.RC_Edition___Dude_Perfect

You will need to follow the naming standards in the first post. If you change your path to the following it should work:

./Mountain Top Snow Battle/2016-02-01.Mountain Top Snow Battle - Dude Perfect.mkv

@mjarends said:
You will need to follow the naming standards in the first post. If you change your path to the following it should work:

./Mountain Top Snow Battle/2016-02-01.Mountain Top Snow Battle - Dude Perfect.mkv

Didn’t work, I ended up sorting all episodes in year and then a episode number.
s2016e001 - 2016-01-01 - MKBHD Update 12.0_ Moving Out!.jpg s2016e001 - 2016-01-01 - MKBHD Update 12.0_ Moving Out!.mkv s2016e001 - 2016-01-01 - MKBHD Update 12.0_ Moving Out!.summary s2016e002 - 2016-01-05 - Ask MKBHD V7_ CES 2016!.jpg s2016e002 - 2016-01-05 - Ask MKBHD V7_ CES 2016!.mkv s2016e002 - 2016-01-05 - Ask MKBHD V7_ CES 2016!.summary
I did put all under Marques Brownlee/2016 It’s more like it’s recommended to do. :slight_smile:

Did someone test ā€œUnstructured formatā€? It is work?

@stanosek Yes I test out all of the different formats for the plug-in before I release it. On my Plex server I organize all of my home videos using the unstructured format. Are you having an issue with the plugin not recognizing your files?

I did put all under Marques Brownlee/2016 It’s more like it’s recommended to do. :slight_smile:

@Swordh Great! I’m glad you were able to get it to work.

Hi,
I“m really thankful for your awesome bundle!
I can“t get the subtitles to work though, everything else is working great.

Here is my naming:
Web/WordPress - Building Child Themes/Wordpress Building Child Themes - s01e01 - Welcome.mp4
Web/WordPress - Building Child Themes/Wordpress Building Child Themes - s01e01 - Welcome.srt

Agent: extended personal media agent in a TV-show library.
I have tried to choose language english and renamed the srt to .en.srt with no success.

Any ideas?

Best regards, Niklas

1 Like

@lovefall Make sure that you have the Local Media Agent enabled under the Extended Personal Media Shows (see the screen capture). The Local Media Agent is the agent that will find the SRT and add it to the show in Plex. You could also try checking the Local Media Agent log to see if there are any errors/issues.

I cant believe after how long this discussion has been open we STILL cant have something for Lessons such as Chapter and Lesson instead of Season and Episode. Its just seems so counter intuitive. I realize its sort of coded into the base Plex build… Its just nice that someone like @mjarends has worked so hard and been able to mod it so we can make the best of what we have. Maybe someday…

@mjarends: that did the trick, thank you!

I thought Plex only picked info from the agent at top but it picks info from all ticked agents? Is it more of a ranking so if the same field-info is in both agents, it picks the highest ranked agents info, is that correct?

One more question: I can add a desc-file for every episode, added in the season-folder but is possible to add it for the show so the description shows in the show-info? Like you can do with show.jpg.
I cut and paste this in Plex edit-show info today but it would be nice to automate this to.

/Nicke

@lovefall The order in the metadata agent list is the priority in which the different metadata agents can contribute information to the media. The Extended Personal Media Shows agent doesn’t contain any logic to add subtitle information and is reliant on other agents to add the data. Having it first in the list means that any show, season or episode data that it contributes would override values found within the media by Local Media Assets agent. I will look into adding summary information to the show and season. I’ll post back here when added.

@theshacks82 Thanks for the kind words.