Expressions/Rules requests (5 Viewers)

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I mean for the whole season the format is like this Firefly.2002.Ep01.720p.BluRay.DTS.x264-ESiR.mkv but the episode number goes up

    Add a replacement option that takes "Firefly.2002.Ep" and replaces it with "Firefly.S01E", make sure to enable the option to replace before the Regular Expressions are done and you will be good to go. However it might be easier for future imports to rename all your filenames to the proper format.
     

    blast555

    New Member
    January 6, 2010
    4
    0
    Hey all

    I cant seem to get my database parsed properly. My entire collection is named like:
    Series/Season <season>/<series> - [S<season2>E<episode2>]<title: - ><title>.xvid
    for example:
    root\How I Met Your Mother\Season 5\How I Met Your Mother - [S05E11] - Last Cigarette Ever.xvid
    or
    root\Heroes\Season 3\Heroes - [S03E08] - Villains.xvid

    The system manages to grab the season and episode number correctly, except for some reason is putting square brackets in the series and title column. And is keeping the .xvid in the title. So it looks like
    Parsed Series Name: heroes [
    Season ID: 03
    Episode ID: 08
    Episode Title: ] Villains.xvid

    Is there any way I can fix this without changing all my file names?
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Add a new simple filter, and make sure it is first in the list, so that the other rules don't conflict (as far as I know they are processed in order):

    Code:
    <series> - [S<season>E<episode>] - <title>.<ext>

    PS: I believe without the [ and ] that your filenames will process correctly with the default rules, so you could simply add a replacement to run before, that removes those chars from the filename.

    I helped somebody else with a simelair question, so look at screenshot at this post where you would replace "[" with ""
     

    Duc78

    Portal Member
    September 27, 2006
    73
    3
    Hi!
    I record TV with this: %title%\%title% - S%series%E%episode% - %name%
    and I get: Ellen/Ellen - S2E1 - Scharf auf den Zahnarzt.ts

    My problem is that TV Series won't recognize shows with with one number in Episode field.
    So, I thought I put simply a 0 to Recording Expression like this: %title%\%title% - S%series%E0%episode% - %name%
    But then I get for example: Ellen - S2E011 - Was auch immer.ts, then it is recognized as Season 0 and Episode 11.
    Has anyone an idea? perhaps another rule for TV Server with two digits?

    Another problem is recording for example "Scrubs - Die Anfänger" (German Title)
    I think TV Series can't handle to much "-" ?


    Thanks for Help!!
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    You can simply add a Replacement string to replace " - " with " " and process it before the Regular Expression rules are matched. Or you can use replace " - S" with " S" and therefore leaving the episode title " - " alone. There are very powerful combinations possible when you think it through.

    A crude way to solve your single episode problem, without getting into fancy Regular Expressions, would be to add 9 replace before strings, using "E1 " into "E01 " and do that for 1-9. The space at the end ensures that the existing double digit Episode filenames are left alone.

    To solve it via RegExp, check out: https://forum.team-mediaportal.com/...s-rules-exchange-21977/index2.html#post529460

    You will be amazed what searching the forums can do for you.
     

    yakovyarmo

    Portal Member
    August 17, 2009
    10
    0
    Home Country
    Israel Israel
    my library is ordered in the following way:
    d:\series\Series name\season number\season number x episode number - title od the episode
    for example:
    D:\Series\Two And A Half Men\Season 4\04x02 - Who's Vod Kanockers
    and when i import the series it show me a window that says cant find the series "season 4" like something is messed up over there.
    i have the following simple rule at the bottom of the parsing list:
    <series>\Season <season>\<season>x<episode> - <title>.<ext>

    and it still doesnt work.
    what can i do??:eek::eek:
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    my library is ordered in the following way:
    d:\series\Series name\season number\season number x episode number - title od the episode
    for example:
    D:\Series\Two And A Half Men\Season 4\04x02 - Who's Vod Kanockers
    and when i import the series it show me a window that says cant find the series "season 4" like something is messed up over there.
    i have the following simple rule at the bottom of the parsing list:
    <series>\Season <season>\<season>x<episode> - <title>.<ext>

    and it still doesnt work.
    what can i do??:eek::eek:

    You answered your own question, the parsing expression rules are parsed in order, but when a match is found, the other rules are ignored. So move your rule to the top. Unfortunatly the up/down arrows to adjust order don't work, so you will have to copy-n-paste a lot to change the order.
     

    smith69085

    Portal Member
    May 7, 2009
    23
    1
    I'm a bit of a novice on this stuff so any help would be much appreciated.
    I want to parse the below and the 25 other files but have no clue on Reg exp and not that good on simple. All of the dots in the name (Once.upon.a.time...Life) are beating me at the moment.

    E:\downloads\Finished\TV\Once Upon a Time...Life\Once.upon.a.time...Life.02of26.Birth.Xvid.MP3.en.de.fr.es.mvgroup.org.avi

    Can this be done with simple expressions and if so how or will it have to be reg in which case just tell me as i wouldn't know where to start!
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I'm a bit of a novice on this stuff so any help would be much appreciated.
    I want to parse the below and the 25 other files but have no clue on Reg exp and not that good on simple. All of the dots in the name (Once.upon.a.time...Life) are beating me at the moment.

    E:\downloads\Finished\TV\Once Upon a Time...Life\Once.upon.a.time...Life.02of26.Birth.Xvid.MP3.en.de.fr.es.mvgroup.org.avi

    Can this be done with simple expressions and if so how or will it have to be reg in which case just tell me as i wouldn't know where to start!

    String Replacements: ".Xvid.MP3.en.de.fr.es.mvgroup.org" with "<empty>"
    Simple: <series> <season>of<episode> <title>.<ext>

    That should do it.
     

    Users who are viewing this thread

    Top Bottom