jmichas / PlexTrainingVideoScannerAndAgent

A Plex scanner and agent for training videos i.e. Pluralsight, Lynda.com, etc.
MIT License
87 stars 13 forks source link

Seasons not working #7

Open gigaguy opened 6 years ago

gigaguy commented 6 years ago

Seasons dont appear to work correctly. Below is my directory format, which is how it's specified in the regex (I believe).

/Lynda.Foundations.of.Photography.Composition/1. Understanding Composition/01_01-whatIsComp.mov
/Lynda.Foundations.of.Photography.Composition/1. Understanding Composition/01_02-allForm.mov

There should be 15 seasons/chapters/sections in this course. Each with several episodes under them. I am only getting one Season. And it is picking up the title of the last scanned. So If I manually scan metadata for season 2, the one season gets that title. It it then grouping each episode under season as a version of each episode.

Also, I added CBTNuggets to the code. It is below if you want to add to yours.

if 'cbtnuggets' in media.title.lower():
            logDebug('CBTNuggets', 'Set studio and remove CBTNuggets from title')
            media.title = media.title.replace('Cbtnuggets','').strip()
            metadata.title = media.title
            metadata.studio = 'CBTNuggets.com'
gigaguy commented 6 years ago

I was able to get them to separate into seasons by using the 2x01 format. Like tv shows.

/Lynda.Foundations.of.Photography.Composition/1. Understanding Composition/1x01-whatIsComp.mov

But now the episode title shows as 'x01 what Is Comp'. Approximately where is the code that parses out the title. How can I get rid of the 'x01'?

victorBuzdugan commented 6 years ago

Thx for your help. Did you managed to fix this somehow?

bobbintb commented 4 years ago

I have the same issue. I have my naming scheme set up like the documentations says.