[REL] Extended Personal Media Scanner

@sprucejuice Sorry I can’t be of any help on this one.

You may want to post in the general Synology forum if you want more direct help:
https://forums.plex.tv/categories/synology

I did find this post there that may help get you on your way:

@mjarends said:
The problem is that the regexs are all expecting media to be named in a certain format. In your case the scanner and metadata agent are incorrectly trying to parse the following name as it were a date-based episode.

CBT Nuggets - Microsoft Windows Server 2012 70-410 with R2 Updates\10. Configure Server Core.mp4

It sees the 2012 70-410 as a date and tries to use that to build the season and episode numbers that Plex requires for the TV libraries. That is also the reason you are getting the error that you put in your first post. If you aren’t following the formats then the plugins will not work. Currently there are no easy ways to override the built-in regexes to get custom file names to work.

I get that, but even renaming the files doesn’t fix it. The only thing that fixes it is removing the “-” in the folder name, it reads correctly, even with the numbering scheme. I can rename that to S01E10 Configure Server Core.mp4, makes no difference. As soon as I remove the hyphens, boom, reads no problem.

@mjarends I’ll check it out. Thanks for your help :slight_smile:

can this be installed on an android server (nvidia shield)? thanks!

@diodorus I haven’t tried installing it on Android yet. I know others are running it on Linux servers without issue. If you do get it setup please report back here with your results and setup instructions and I will get the readme updated. Thanks.

I recently pass my Installing and Configuring Windows Server 2012 exam. I go through different books, notes and articles. One more important thing which I want to mention here is updated 70-410 exam dumps are also help full for me to pass this exam.

Hello, I think I may have screwed something up, before I fix it, I want to make sure it’s an actual mistake. I have two questions below.

My sporting event file names are :

Sport League - 2017-11-21_1 - team1 vs team2.mp4
Sport League - 2017-11-21_2 - team1 vs team2.mp4
Sport League - 2017-11-21_3 - team1 vs team2.mp4
Sport League - 2017-11-22 - team1 vs team2.mp4
Sport League - 2017-11-22_2 - team1 vs team2.mp4

Yes, their are slight inconsistencies on the addition of _1. This should not matter though, from what I’ve read of your scanner?

And my other question,

In some cases I have

Sport League - 2017-11-21_01 - team1 vs team2.mp4
Sport League - 2017-11-21_2 - team1 vs team2.mp4
Sport League - 2017-11-21_03 - team1 vs team2.mp4

Does the addition of the zero have any negative repercussions? I have named these files but have not been able to check they are loaded properly because I can not search by filename in Plex. (I also did A LOT of these files at once and can not remember which ones I incorrectly added the 0).

I want to say thank you, I have been using this for almost a year now for all types of sporting events and it has performed flawlessly!!

@Merciless1 Thanks and you are welcome. Always great to hear that others are able to to use the plugin.

Question 1: The plugin automatically adds an 01 to files that are missing the index number ( _XX). So in your case those files will be treated like _01.

Question 2: The plugin will turn 2 into 02 when creating the episode number. The only time this would have been an issue is if you were using the plugin before 1/6/2016. In that release I changed the episode index from 1 digit to 2 digits. If you were using the plugin before that date, previously scanned files would have a smaller episode number and your media would be out of order in Plex. To fix that issue you would need to rescan your library so that the plugin could create new episode numbers.

What issue are you seeing? Is not being able to search for the media part of the issue?

Then I think everything is working ok, I just wanted to ask before I spent a few hours tracking down these files and renaming them unnecessarily.

Hey mjarends, just a heads up - the metadata agent doesn’t currently reinitialize self.episodesummary for each episode, so if not all episodes have a .summary file, they will get the summary of the last episode that did. To fix this, I added a line to the end of BaseMediaParser.setValues() in __init__.py:

if os.path.exists(summaryFilePath) is True:
    logDebug('setValues', 'episode summary file %s exists', summaryFilePath)
    self.episodeSummary = loadTextFromFile(summaryFilePath)
else:
    logDebug('setValues', 'episode summary file does not exist')                
    self.episodeSummary = None

Hi Everyone,

So my setup for this is:-

Plex TV show points to the Homevideo directory

/Homevideo
/Holidays
/Holidays - s20170322e0900 - Holiday on the beach.mp4
/Holidays - s20170322e0902 - Holiday by the sea.mp4

Where sYYYYMMDDeHHMM.

What files names do I use for artwork?

I have tried:-

Season20170322.jpg
poster.jpg
show.jpg
folder.jpg

Any help would be much appreciated.

Thanks

Also,

I have just found this:-
forums.plex.tv/discussion/comment/1562085/#Comment_1562085

and it works!! I can change a Season number to a name.

So is it possible to do this:-

/Program Name/SeasonNum - Season Name/EpisodeName

As an example my previous post would be:-
/Freds Home Videos/20170322 - Holidays/Holidays - s20170322e0902 - Holiday by the sea.mp4

where the season number is my date and the episode is the time (UK for me).

or something similar.

So when I look at plex and click on TV Show Folder I get a Program called “Freds Home Videos” and in it a Season Called “Holidays” and inside that a episode called “Holiday by the sea”.

That would be nice and the program is almost there!! Maybe the java script can help in pointing to how to change the Season Number for a name.

What do you think

@PartyMummy Thanks for the bug report. I have added the issue here: https://bitbucket.org/mjarends/extendedpersonalmedia-agent.bundle/issues/6/metadata-agent-is-adding-the-summary-to

and will fix sometime in the next couple of days.

@kwakers This plug-in uses the Plex Local Media Assets plugin for artwork. See Plex’s documentation on how artwork should be named here:

https://support.plex.tv/articles/200220717-local-media-assets-tv-shows/

The way that I do it on my own server is that i have all of my family videos arranged like this (dashes were added only to show the folder levels below):

\Home Videos
-----\Vacation
---------show.jpeg
---------fanart.jpeg
---------\2010
--------------Vacation - 2010-01-01 - New York City.mp4
--------------season-2010.jpeg

@mjarends Thanks for confirming that it worked and it was me !!! OK, Fix it!! I missed out this step - I hadn’t ticked the Local Media Assets!!

  1. In the Plex/Web application go to Settings > Server > Agents > Shows > Extended Personal Media Shows. Ensure that the Local Media Assets (TV) agent is checked and showing in the list (see the screen capture). The Local Media Assets is needed to add subtitle or metadata attributes from the files to your media.

Kind of an odd instance where if I add a second folder to a Library that is using this Plugin, I can not get any file added to the second location to properly work.

Has anyone encountered this? I have toggled, reinstalled, and so forth. A file, properly named, will show up in Plex proper if added to the first folder listed. If I add that identical file (either named the same, or one sequential number higher, etc) it will show up only as “Episode Number” and nothing else.

Thoughts?

Hi, sorry for digging up this old thread but not sure where new discussions are being held.
I’m trying to set up my P90X library and have some issues with it not finding everything.

So my folder structure looks like this and some it finds and others it doesn’t.

\Fitness
\Insanity
\Insanity (I had to put this directory to make insanity show up)
\Season 1
01. blah
02. blah
\P90X
\P90X One on One
\Season 1
01. blah
02. blah
\Season 2
01. blah
02. blah
\P90X Original
\Season 1
01. blah
02. blah

So, Insanity and P90X One on One show up but the original one doesn’t show up. Any ideas on best way to strcuture it?

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