Help Modifying the Personal Media Shows Agent

Need to pick up episode name from the file name
I'm trying to get my home movies organized correctly. I know a little about coding but not a ton.

I named my home videos according to the personal media show naming guide. For example: Christmas - S2010E01 - Getting Ready.m4v

I figured that the personal show agent would parse out the episode name from the file name (in the above example the episode name would be 'getting ready') but this is not the case.
Can anyone guide me on how best to be able to pull the episode name from the file name?

In my case all episode names would be found after the second hyphen in the string (I made sure only to use hyphens to separate the show from the season/episode from the episode name (Christmas - S2010e01 - Getting Ready). It'd probably be doable to write some code to use the file name, go to the second hyphen, and parse out the name after that.

My other thinking - and I'm not sure if anyone has any experience with this - is to use metaX, or something similar to tag all of my m4v files so they have a name tag, and then create an agent to read the m4v's embedded title tag. I actually think the one of plex's scanners does this for movies so maybe I'll be able to take some of that code and adapt it.


I'd really appreciate any help or suggestions!

I don’t think the agent gets the filename? You might have to modify the scanner so it passes that section of the filename on.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.