Default expressions/double episodes (1 Viewer)

deebo

Portal Pro
April 19, 2006
233
3
i could use one for using

"Series - S01E01.avi"
"Series - S01E01(-02).avi"

those regexp's go way over my head :)
 

Scoobsheister

Portal Pro
June 21, 2006
60
0
i could use one for using

"Series - S01E01.avi"
"Series - S01E01(-02).avi"

those regexp's go way over my head :)

as far as i can figure out (not actually tried it) - ^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-1]?\d)e(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(?:(?<episode2>\d\d(?!\d))|E(?<episode2>\d\d)|(?:\d\d|(?<!\d)\d)x?(?<episode2>\d{2}(?!\d)))|)[ -.]*(?<title>[^\\]*?(?<HR>HR\.)?[^\\]*?)\.(?<ext>[^.]*)$ - should work

it's the last of the regexp expressions


I have a problem getting my 2nd episode to be displayed in the database. I have an episodeindex2 alright but this data is not displayed in media portal.

i.e.

Series - 1x01&02
Series - 1x03

only shows entries for episode 1 and 3.

Is there a way to get the 2nd part of the first local file to be displayed as a seperate file? (i currently have 'only show files with local file listed' enabled, but have tried without and it didn't seem to work)

is there something i need to change in the episode view settings?
 

gamejester

Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    Can anyone help me to change a regular expression to cope with my nested dir structure.
    I store episodes in this format

    M:\series\Lost\Season_1\Lost - 3x01 - A Tale of two cities.avi

    Then point he import path to
    M:\series

    None of the inbuilt regualr expressions work with this nesting so I have been using a simple expression
    I use this one:
    <series> - <season>x<episode> - <title>.<ext>

    but I now want to support double episodes.

    This expression is almost there as far as the file name is conerned, could my nested dir be stopping it from working?

    ^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-1]?\d)e(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(??<episode2>\d\d(?!\d))|E(?<episode2>\d\d)|(?: \d\d|(?<!\d)\d)x?(?<episode2>\d{2}(?!\d)))|)[ -.]*(?<title>[^\\]*?(?<HR>HR\.)?[^\\]*?)\.(?<ext>[^.]*)$

    any help with this would be great.
     

    eventone

    Portal Member
    February 16, 2007
    48
    1
    Home Country
    Portugal Portugal
    Hi, I'm trying to import this:

    "D:\Alias - 4x01-02 - Authorized personnel only, part 1 and 2.avi"

    But none of the default expressions seems to work here... The episode won't be imported.

    Can anyone come up with an expression for this? I can't understand how to work with those complex expressions... :confused:

    Thanks!
     

    Ynot

    Portal Member
    August 15, 2006
    49
    1
    Home Country
    United Kingdom United Kingdom
    Hi, I'm trying to import this:

    "D:\Alias - 4x01-02 - Authorized personnel only, part 1 and 2.avi"

    But none of the default expressions seems to work here... The episode won't be imported.

    Can anyone come up with an expression for this? I can't understand how to work with those complex expressions... :confused:

    Thanks!
    This is from memory and not tested
    and assuming a single episode would look like
    Alias - 4x01 - Authorized personnel only, part 1.avi

    Code:
    ^(?<series>[^\\]*?) - (?<season>[0-9]+)x(?<episode>[0-9]+)(-(?<episode2>[0-9]+))? - (?<title>[^\\]*?)\.(?<ext>[^.]*)$

    *edit*
    fixed error
     

    gamejester

    Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    So will this expression also work for my files in a nested structure?
    Example:

    M:\series\Lost\Season_1\Lost - 3x01 - A Tale of two cities.avi

    and if have a 2 part show do I name it

    M:\series\Lost\Season_1\Lost - 3x01-02 - A Tale of two cities and Whatever episode 2 is called.avi

    if not what do I need to add to the beginning of the regx?

    thanks
     

    Ynot

    Portal Member
    August 15, 2006
    49
    1
    Home Country
    United Kingdom United Kingdom
    So will this expression also work for my files in a nested structure?
    Example:

    M:\series\Lost\Season_1\Lost - 3x01 - A Tale of two cities.avi

    and if have a 2 part show do I name it

    M:\series\Lost\Season_1\Lost - 3x01-02 - A Tale of two cities and Whatever episode 2 is called.avi

    if not what do I need to add to the beginning of the regx?

    thanks
    Code:
    ^([^\\]+\\)*(?<series>.+?) - (?<season>[0-9]+)x(?<episode>[0-9]+)(-(?<episode2>[0-9]+))? - (?<title>[^\\]+)\.(?<ext>[^.]*)$
     

    gamejester

    Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    Great, that has done the trick.
    Thanks a lot. :D
     

    Users who are viewing this thread

    Similar threads

    fixed the episode naming above ^. There was no error in the naming of the file itself. Every time I enter TV Series, it tries to re-scan the episodes. The series appears for just a few seconds and disappears again.
    fixed the episode naming above ^. There was no error in the naming of the file itself. Every time I enter TV Series, it tries to...
    I recorded all 6 episodes of "Walking With Dinosaurs (2025)" from PBS, edited the non essential stuff out and saved them as MKV. I...
    Replies
    1
    Views
    1K
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV Server Config". I have tried MP2 only a couple of times, and have never used it seriously. I don't know what MP2 supports with regard to adjusting audio delay, but I do know that all of the adjustments of...
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV...
    Hi. I recently upgraded my home cinema AVR which also meant changed from sending audio from my HTPC as 5.1 using optical to 7.1...
    Replies
    5
    Views
    1K
    I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The Latest Media Handler plugin seems to be working as expected. I've had no lock-ups.
    I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The...
    Before you create this bug report: Make sure that your system (windows, codecs and drivers) is up to date, matching the...
    Replies
    13
    Views
    2K
    Hello, I would like to use a media server to display various learning categories. I prefer not to use software like Kodi, as it requires extensive metadata scraping that I don't need. Is it possible to instantly access the video categories when landing on the page? I would like to display a single media page with the following...
    Hello, I would like to use a media server to display various learning categories. I prefer not to use software like Kodi, as it...
    Hello, I would like to use a media server to display various learning categories. I prefer not to use software like Kodi, as it...
    Replies
    0
    Views
    1K
    Nevermind, I think. I found them in the forum. I had only checked the main webiste for MP2 plugins. https://www.team-mediaportal.com/extensions/mp2-plugins I hope these work: Featured Plugins
    Nevermind, I think. I found them in the forum. I had only checked the main webiste for MP2 plugins...
    I've been an MP1 user for a long time. I'm interested in switching to MP2. However, I rely heavily on the features provided by...
    Replies
    1
    Views
    2K
    Top Bottom