Mp-TV Series recognize Series by Folder Name (1 Viewer)

spacematten

Portal Member
April 20, 2009
20
1
Home Country
Germany Germany
Hello,

I use Media Browser and XBMC for my HTPC but now I give Media Portal a try, looks with the StreamedMP skin very pretty and is much more configurable as other progs. I still have Problems to import all my TV Shows with MP TV Series.
I can't find any Option to use folder names instead of filenames to match the series with online data.
I have a lot of searching and renaming to do, to match all the series.
In XBMC an Media Portal all my Series matches with only one scan, these prog use the folder name for the look up.

Is there any possibility to change this, don't won't do rename all the files. MP-TVSERIES seemd to be a very mighty tool but the way which it import the data is a littly bit complicated.
Why should I rename thousands of files when renaming a simple folder is enough for other progs like xbmc or media portal.

find this by google

"Reported by project member damien.haynesatgmail.com, Sep 20, 2010

Add option to 'prefer folder name' for series match, this can override the parse result if a root sub-folder exists.

e.g.
Doctor Who (2005)\doctor.who.4x12.mkv

will be parsed as series='Doctor Who (2005)'"

But can't find this option anywhere.

Somebody know an answer?????

Moving Picture has this Option.
 

Paranoid Delusion

Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    This is not to answer your question, just might help in the future for you or someone else.

    I use Media Center Master to scan ALL my TVSeries\Movies, once scanned and you are happy with the results, then under tools there is a mass rename option, which worked fine for me, and puts everything too the layout that is on the tvdb site.

    TVSeries and Moving Pictures have no problems identifying files.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    The way MP-TVSeries recognizes filenameing schemes during import is all dealt with via the Parsing Expressions. By default a ton of filenaming schemes are supported, but there will always be a few that slip through. The problem is that in your case you are dealing with false-positives.

    The primary/first parsing expression looks at the filename only.

    Doctor Who (2005)\doctor.who.4x12.mkv

    It looks for series name, season, episode and an optional episode title. In your case this means "doctor who" and S04 with E12 are valid and any other expression that might look at folder name "Doctor Who (2005)" is ignored.

    All you have to do is simply disable the parsing expressions you do not want, starting with the first one. I don't remember offhand which one will deal with folder first, but should not take you much time to find out.

    You can also build your own parsing expression easy, or rely on existing shared ones, such as in your case: https://forum.team-mediaportal.com/786797-post24.html

    Enjoy.
     

    spacematten

    Portal Member
    April 20, 2009
    20
    1
    Home Country
    Germany Germany
    AW: Mp-TV Series recognize Series by Folder Name

    Thanx for the answers.

    Didn't see through all the parsing expressions and deceided to rename all my tv serie file in a correct name. so my database is cleaned up and tv-series has no problem to find all series and episodes.
    BTW I used "filebot" and the rename option with tvdb matching function, was a very quick operation. Didn't expect that, thought it would took hours.
    regards

    matten
     

    JasperE

    New Member
    January 13, 2014
    4
    1
    41
    Home Country
    Netherlands Netherlands
    A bit late to reply here but I found no ready-made solutions to this problem so I modified the existing regexes myself. As, 2 years after first post, I was still left with the same question as the original thread author I think it's of some value to post my solution here.

    The following two regexp matches will work in folder structures which are organised as follows:
    \The.Wire\Season.01\The.Wire.S01E01.The.Target.AC3.DVDRip.XviD-MEDiEVAL\the.wire.s01e01-med.rar
    or
    \The.Wire\The.Wire.S01E01.The.Target.AC3.DVDRip.XviD-MEDiEVAL\the.wire.s01e01-med.rar

    What's different from the default regexp matches is that it will use the bold-marked foldername to fetch the series name, rather than trying to fetch the series name from the .rar filename.

    Code:
    (?<series>[^\\]+)\\(Season.?[0-9]+\\)?[^\\]+\\(?<series2>[^\\]+?)[ _.\-\[]+(?:[s]?(?<season>\d+)[ _.\-\[\]]*[ex](?<episode>\d+)|(?:\#|\-\s)(?<season>(?!(?:\d{4}.\d{2}.\d{2}|\d{2}.\d{2}.\d{4}))\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:[s]?\k<season>[ _.\-\[\]]*[ex](?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?<episode2>\d+)))*[ _.\-\[\]]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^.]*)$
    (?<series>[^\\]+)\\(Season.?[0-9]+\\)?[^\\]+\\(?<series2>[^\\$]+?)(?:s(?<season>[0-3]?\d)\s?ep?(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(?:s\k<season>e?(?<episode2>\d{2}(?!\d))|\k<season>x?(?<episode2>\d{2}(?!\d))|(?<episode2>\d\d(?!\d))|E(?<episode2>\d\d))|)[ -.]*(?<title>(?![^\\]*?sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$

    I think the advantage of this setup is that it's easier to control under which specific series name episodes are cataloged. Sometimes that's helpful, especially with series having similar titles (office uk/us) or if you have your library already setup in a folder and filename structure which you prefer to keep.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom