Expressions/Rules requests | Page 60

Discussion in 'My TVSeries' started by Inker, April 12, 2007.

  1. Chubler

    Chubler Portal Member

    Joined:
    July 14, 2009
    Messages:
    43
    Likes Received:
    12
    Gender:
    Male
    Ratings:
    +13 / 0
    Home Country:
    Australia Australia
    Make sure you define your replacement strings in order from most characters to least to avoid changing Pt.III to 1x01II eg:



    Code (Text):
    1. Pt.III -> 1x03
    2. Pt.IV -> 1x04
    3. Pt.IX -> 1x09
    4. Pt.II -> 1x02
    5. Pt.I -> 1x01
    6. Pt.VIII -> 1x08
    7. Pt.VII -> 1x07
    8. Pt.VI -> 1x06
    9. Pt.V -> 1x05
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. hakuna

    hakuna Portal Pro

    Joined:
    October 15, 2004
    Messages:
    395
    Likes Received:
    0
    Occupation:
    Automation engineer
    Location:
    Gothenburg
    Ratings:
    +1 / 0
    Home Country:
    Sweden Sweden
    Hello. Can someone tell me why MyTVseries won't add this file, until I put it in the Californication subfolder?
    Californication.S04E08.720p.HDTV.X264-DIMENSION.mkv
    I use default expressions. I also tried renaming to Californication - S04E08.mkv, but no change.
    No files parse in the folder \\servern\Film\TV
    but if they are in ...\TV\Californication both file names parse.
    I have pressed Reset on the Parsing expressions...
    I can't find anything relating to Californication in the log files.
    http://dl.dropbox.com/u/12333017/MP-TVSeries.log
    http://dl.dropbox.com/u/12333017/Configuration.log

    Niclas
     
  4. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,172
    Likes Received:
    1,301
    Ratings:
    +1,675 / 2
    It looks like you did not adjust MP-TVSeries to run in debug mode (you can adjust this in the control panel of the plugin), so I can't see what parsing expressions was actually used.

    Manually verify (or adjust), that you are using the following expression:

    ^(?:.*\\)?(?<series>[^\\]+?)[ _.\-\[]+(?:?(?<season>\d+)[ _.\-\[\]]*[ex](?<episode>\d+)|(?:\#|\-\s)(?<season>\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:?\k<season>[ _.\-\[\]]*[ex](?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?<episode2>\d+)))*[ _.\-\[\]]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^.]*)$


    And it 'should' work fine then. There was an older version that did not make the initial path conditional, so that would indeed not pick up files in the root folder. Perhaps you still are using an older plugin that does not contain the new default expression as given above, which would explain why 'reset' fails to make it work for you.
     
  5. hakuna

    hakuna Portal Pro

    Joined:
    October 15, 2004
    Messages:
    395
    Likes Received:
    0
    Occupation:
    Automation engineer
    Location:
    Gothenburg
    Ratings:
    +1 / 0
    Home Country:
    Sweden Sweden
  6. hakuna

    hakuna Portal Pro

    Joined:
    October 15, 2004
    Messages:
    395
    Likes Received:
    0
    Occupation:
    Automation engineer
    Location:
    Gothenburg
    Ratings:
    +1 / 0
    Home Country:
    Sweden Sweden
    No more clues, or info I can give?

    Niclas
     
  7. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,172
    Likes Received:
    1,301
    Ratings:
    +1,675 / 2
    Verify for sure the expression matches, because the new one I pasted to you, was never added into the public plugin yet. It only got added 2 days ago into the source via: r1399 - mptvseries - Project Hosting on Google Code

    As you can see on the DIFF page, there are only a few characters changed. Regular Expressions can look extremly alike and behave totally different. So I got a feeling you are still using the wrong one, you can wait for a new public build that contains r1399, compile yourself, or manually edit the parsing expressions and copy in the new one.

    PS: If that still fails, then the only thing I can think off is that you have database corruption. The best way to fix this is to delete your db3 file and start over, but you could try some SQL commands to attempt to fix it.

    https://forum.team-mediaportal.com/...ion-problems-re-importing-after-delete-85479/
     
  8. Marvman
    • Team MediaPortal

    Marvman Retired Team Member

    Joined:
    November 14, 2007
    Messages:
    1,163
    Likes Received:
    365
    Occupation:
    Application Developer
    Location:
    Bavaria
    Ratings:
    +368 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi Guys,

    sorry if the following suggestion was already made.

    I discovered that TV Series try to parse every file and search for a adequate name of the series (it doing very well with the latest regex, so thumbs up for this work)

    But what about a different way to get all episodes (maybe I'm wrong and it do it already, if so then sorry)

    1. define the folder to scan (series)
    2. scan all top folder under series (and take the name as name for the series)
    3. scan all files under the series folder and sub folders
    4. only search for the pattern s01e01 (and variations of it)

    In other words. take the series folder as name for all files under the series folder (and subfolders) and search only the files for the s01e01 pattern.

    Series->Scrubs->xcv-scrubs-s01e01hdtv-x264.mkv
    Series->Scrubs->Series 01->yxcscrubs-s01e02hdtv-x264.mkv

    PLEX is doing the same and it could improve the matches alot.

    Just an idea!

    Thank and bye
     
  9. hakuna

    hakuna Portal Pro

    Joined:
    October 15, 2004
    Messages:
    395
    Likes Received:
    0
    Occupation:
    Automation engineer
    Location:
    Gothenburg
    Ratings:
    +1 / 0
    Home Country:
    Sweden Sweden
    Thanks for your suggestions, but even a totally blank db (plus the new parse expr) doesnt work...
    http://dl.dropbox.com/u/12333017/MP-TVSeries.rar
    For example T:\Community.S02E17.720p.HDTV.X264-DIMENSION.mkv
    is not found...

    Niclas
     
  10. Inker
    • Team MediaPortal

    Inker Retired Team Member

    Joined:
    December 6, 2004
    Messages:
    2,055
    Likes Received:
    319
    Ratings:
    +319 / 0
    Hi marvman,

    unless I misunderstand what you are saying, what you want is essentially just another regex expression.
    I'm not sure what you mean by it tries to parse every file for the series name? What it does is, it hands of every (video) file (with path) to the regexes in order, its up to them to decide if its a match or not, if its not, it is disregarded at this point. If the filepath matches a regex than that regex will have returned a seriesname/season/episode number with which we do metadata lookup.

    Please give concrete examples of filenames you think would fit better. I'm pretty sure you just need a regex (and disable the rest). Are you essentially trying to lower false positives?
     
  11. Inker
    • Team MediaPortal

    Inker Retired Team Member

    Joined:
    December 6, 2004
    Messages:
    2,055
    Likes Received:
    319
    Ratings:
    +319 / 0
    It's just really weird because a large percentage of my files are in the root of one of my shares, and this has always worked for me.

    Earlier you said: \\servern\Film\TV is that what T: maps to? I have not tried with a drive foot, would be surprising if that doesnt work.
    Does it also not work if you define \\servern\Film\TV as the folder either? That kinda has to work, its is extremely similar to what my setup looks like. If it doesn't, something else is going on.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!