[REL] Extended Personal Media Shows Agent

I’m on vacation right now but can add support for the CXXEXX pattern next week when I get back. The problem is that the Plex interfaces always use season. There is no way to change this that I know of.

Wow! That would be sweet. Thanks. Enjoy your vacation.

Wow! That would be sweet. Thanks. Enjoy your vacation.

thehacks82 - I updated the scanner and metadata agent to support using "Chapter" and "C" (case doesn't matter) instead of "Season" and "S". You will need to update both the scanner and the metadata agent for the changes to work correctly. Let me know if you have any issues.

thanks mjarends... That works. As you said tho, Plex still displays SEASON which kinda takes the bang out of it..  

Wondering.. is the scanner supposed to be able to read the filename and create a title? For example. if the filename is:   C01E01 - Welcome.mp4, is it supposed to show as Espisode 1 or Should it display Welcome? thanks for your work on this.

theshacks82 - it parses the file name and would display "Welcome" as the title for the video. It also is able to read a text file that contains a summary and adds to the video description in Plex. See the first post in this thread for more info on that functionality.

yea.. it converts C01E01 into Episodes but i am still getting Episode 1 instead of the title. See Images attached.

yea.. it converts C01E01 into Episodes but i am still getting Episode 1 instead of the title. See Images attached.

It looks like you have everything installed correctly.

  • On the library did you set the scanner to Extended Personal Media Scanner and the metadata agent to Extended Personal Media Agent? If you changed the scanner and/or metadata agent after you first created the library you will need to force a refresh.
  • What does the full directory path look like to these files? If you send me the logs from the metadata agent I might be able to determine what the issue is.

It looks like you have everything installed correctly.

  • On the library did you set the scanner to Extended Personal Media Scanner and the metadata agent to Extended Personal Media Agent? If you changed the scanner and/or metadata agent after you first created the library you will need to force a refresh.
  • What does the full directory path look like to these files? If you send me the logs from the metadata agent I might be able to determine what the issue is.

1.  You should be able to see the path of the install from the images in the above post. the path is displayed in the top bar of the explorer window

2. So, i moved the content out of the folder and reset the scanner to the default.  Rescanned the folder to remove the old content. Reconfigured the scanner to your Agent. Rescanned  and now nothing updates - i get no listings at all? Also, it appears the log is not updating either. So i am guessing the files are in the wrong place? Or perhaps i need to reboot the server. I will try that first.

1.  You should be able to see the path of the install from the images in the above post. the path is displayed in the top bar of the explorer window

2. So, i moved the content out of the folder and reset the scanner to the default.  Rescanned the folder to remove the old content. Reconfigured the scanner to your Agent. Rescanned  and now nothing updates - i get no listings at all? Also, it appears the log is not updating either. So i am guessing the files are in the wrong place? Or perhaps i need to reboot the server. I will try that first.

  1. Sorry I meant what is the path to the media file that is being scanned. I just want to make sure the naming convention used was supported by the plug-in.
  2. Can you send a screen shot of what the library configuration looks like. You should only see a log for the metadata agent. The scanner does not create log files.
  1. Sorry I meant what is the path to the media file that is being scanned. I just want to make sure the naming convention used was supported by the plug-in.
  2. Can you send a screen shot of what the library configuration looks like. You should only see a log for the metadata agent. The scanner does not create log files.

PLease see the attached screenshot for the filepath. Also, i sent a PM with agent logfile. thanks.

Was just testing this scanner/agent combination and have come across some issues that I haven't seen mentioned previously.

Is there a way to set up folder/file structure for seasons that span 2 years such as basketball & "soccer".

Example

Barclays Premier League

     /Season 2014-2015

        /2015.01.01 - Chelsea Vs Manchester United

I've tried quite a few combinations, including just using Season 2015 but scanner still separates based into Season 2014 & Season 2015

Thanks

Currently there’s not but I think that’s a great idea. I’ll try to work on it this weekend.

One caveat with the solution would be that the season would still show up as 2014 in Plex. If you are OK with that result than I can look at supporting the pattern.

Resolved: Didn't read the naming scheme carefully. :)

With a new name scheme in MeditathekView "%t - %3-%2-%1 - %T.%S" it works fine.

It creates the correct name "Showname - Date - Episodetitle.ext".

Great extension.

------------ old post -------------

I try getting my downloads from MediathekView to show up correctly in Plex and found this plugins.

I don't get the folders as a show. All items are like single shows, like I added them before as personal media:

It should show "3 Stock links" as only one item. and "37 Grad" as another one.

My folder structure:

 Directory of d:\vids\mediathek\100 Jahre Landleben
 
31.03.2015  19:06       647.187.274 100 Jahre Landleben-100 Jahre Landleben-TV-20150226-1426-2542.hq-2015-03-31.mp4
 
 Directory of d:\vids\mediathek\3. Stock links. Die Kabarett-WG
 
31.03.2015  23:49       642.415.572 3. Stock links. Die Kabarett-WG-Mit Maxi Schafroth, Christian Tramitz und Petra Nadolny-d8de01f0-2015-03-31.mp4
31.03.2015  19:08       655.323.889 3. Stock links. Die Kabarett-WG-Mit Stefan Waghubinger-bd1af30cc45511e48a90984be10adece_C-2015-03-31.mp4
31.03.2015  21:09            10.284 poster.jpg
 
 Directory of d:\vids\mediathek\37 Grad
 
31.03.2015  18:41       518.968.861 37 Grad-Mord im Paradies-150309_mord_paradies_neu_37g_2256k_p14v11-2015-03-31.mp4
31.03.2015  19:02       774.620.528 37 Grad-Schoener Mist!-150210_schoener_mist_37g_2256k_p14v11-2015-03-31.mp4
31.03.2015  18:53       515.032.597 37 Grad-Willkommen in Deutschland-150304_willkommen_deutschland_37g_2256k_p14v11-2015-03-31.mp4
 
627dpRe.png
 
Episode View:
 

brotbuexe - the scanner and metadata agent require that the media files follow the formats that are specified in the first post. The reason that you are getting strange results is because your media does not follow the format. For example if you wanted the "3. Stock links. Die Kabarett" shows to be displayed under one show within Plex you would to use the following format:

3 Stock links Die Kabarett-2015-03-31-WG-Mit Maxi Schafroth, Christian Tramitz und Petra Nadolny-d8de01f0.mp4 (--.mp4)
3 Stock links Die Kabarett-2015-03-31-WG-Mit Stefan Waghubinger-bd1af30cc45511e48a90984be10adece_C.mp4
 
This should show two shows under "3 Stock links Die Kabarett" with the following titles:
  • WG-Mit Maxi Schafroth, Christian Tramitz und Petra Nadolny-d8de01f0
  • WG-Mit Stefan Waghubinger-bd1af30cc45511e48a90984be10adece_C

I get the episode title from the wrong file added as metadata. Both files are scanned at the same time.

The correct file:

The broken:

The episode title should not be "Voellig vernetzt Fluch und Segen...", it should be "Tamme Hanken in Namibia".

Interesting is, that both episodes where analyzed at the same time. Could it be a multithread issue?

113 2015-04-02 01:01:17,315 (2290) :  INFO (logkit:16) - scrubString :: original: [Voellig vernetzt - Fluch und Segen der digitalen Welt] scrubbed: [Voellig vernetzt   Fluch und Segen der digitalen Welt]
153 2015-04-02 01:01:17,332 (2290) :  INFO (logkit:16) - update :: episode.title: Voellig vernetzt   Fluch und Segen der digitalen Welt
 
108 2015-04-02 01:01:17,299 (3344) :  INFO (logkit:16) - scrubString :: original: [Tamme Hanken in Namibia] scrubbed: [Tamme Hanken in Namibia]
126 2015-04-02 01:01:17,315 (3344) :  INFO (logkit:16) - update :: episode.title: Voellig vernetzt   Fluch und Segen der digitalen Welt
 

When I do a force refresh, sometimes it gets another name from another show. Another time it gets the correct name.

I see this on other episodes in this library too.

1189 2015-04-02 07:26:44,772 (2a50) :  INFO (logkit:16) - scrubString :: original: [Jaeger der Anden - Der Puma] scrubbed: [Jaeger der Anden   Der Puma]
1238 2015-04-02 07:26:44,796 (2a50) :  INFO (logkit:16) - update :: episode.title: Kuestrin   Pompeji an der Oder
 
 
Another Question.
How can I tell the agent or plex that it shouldn't create multipart episodes? Looks like all files with the same show name and the same date are added as multiparts for the first file:
 

The multipart issue I fixed by changing the filename scheme in MediathekView to "%t - %3-%2-%1_%i - %T.%S". Now it adds a "videonumber" from its database as an index, which isn't the same.

Doku-Reihe - 2015-03-31_26920 - Entdeckungsreisen ans Ende der Welt.mp4
Doku-Reihe - 2015-04-01_26919 - Menschen am Rande der Welt.mp4
Doku-Reihe - 2015-04-02_26914 - Wie das Land, so der Mensch.mp4
Doku-Reihe - 2015-04-02_26917 - Entdeckungsreisen ans Ende der Welt.mp4
Doku-Reihe - 2015-04-02_26918 - Menschen am Rande der Welt.mp4

Now everything with the same show name at the same day is a different episode.

The mixing of metadata between the entries is still weird. It goes beyond show directories and looks like happening only when two files are processed at the same time, for example then forcing a refresh.

The same show names across multiple episodes is strange. Plex manages the threads and the plug-ins do not contain any code that would cause issues in a multi-threaded environment. I run the same plug-in across my own media library (which has hundreds of videos) and have not seen he same problem.

One question - do the videos that have the same episode names have any embedded tag data? The plug-in by default allows the file's metadata to override the name derived from the file name.

Also if you send me a full log that shows the media from when it is first loaded I might be able to better troubleshoot the issue.

I don't see any embedded tag data. And the weird thing is, that the files are getting the metadata from the same files that are scanned at the same time in the other thread.

And when I run the forced scan again, the same files getting other data from the files that are scanned at the same time then.

I thought somehow the variables are global between the instances.

I'll check if it does the same when importing newly downloaded files.

I do see one potential issue. I will update the plug-in and test. Hopefully I will get the changes checked in by this evening.