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

    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For the first example, I highlighted the example text and eventually found the location in the menus where I could select the CODE macro to have the example text formatted as a code example. So far, so good...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    Replies
    0
    Views
    833
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the plugin has. It might be 32-bit, or it might be "any cpu". The plugin is not listed by the "MP Extensions" tool, so I don't know whether it has been tested with the most-recent MP releases. -- from...
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the...
    I'm looking for a better recording scheduler. Many recording titles (at least in the UK) change between episodes, sometimes being...
    Replies
    4
    Views
    1K
    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
    2K
    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
    3K
    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
    4K
    Top Bottom