Filter out Sample directories (1 Viewer)

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I can not edit nor test the expression without having full sample data to run it on.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    since all the sample video file name + paths located in this thread have \sample\ as the directory name, why not just throw out any files if the parent folder to that file is an exact match with "\sample\" this rule would not fail on any episode with sample in the episode title/filename.

    The only way I could image this expression getting it wrong would be if there was a series called sample and the user used the following filename structure \tv series\sample\filename.avi instead of \tv series\sample\Season 1\filename.avi, and if I look on thetvdb there is no series called sample anyways... http://thetvdb.com/?string=sample&searchseriesid=&tab=listseries&function=Search
     
    Last edited:

    croyfer

    Portal Member
    November 3, 2011
    6
    0
    since all the sample video file name + paths located in this thread have \sample\ as the directory name, why not just throw out any files if the parent folder to that file is an exact match with "\sample\" this rule would not fail on any episode with sample in the episode title/filename.

    How does one do such a thing? :)
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    Yeah sorry bad suggestion, I looked into this a bit further and not sure how to do that worth the existing way things are done.
     

    Users who are viewing this thread

    Similar threads

    1) I just upgradede to the latest version (and nooooo it's saturday evening i did not search help) Mediaportal is flashing an I in the top left corner. 'My guess some kind of information, but what to do with it. 2) I tried to update my music "DB" and it says 18K skiped, but when i show my list it's empty. So i guess i screwed up how...
    1) I just upgradede to the latest version (and nooooo it's saturday evening i did not search help) Mediaportal is flashing an I in...
    1) I just upgradede to the latest version (and nooooo it's saturday evening i did not search help) Mediaportal is flashing an I in...
    Replies
    0
    Views
    440
    MP1 MP2 1.39 x86 1.39 won't install DE
    That did it, thanks.
    That did it, thanks.
    Before you create this bug report: Make sure that your system (windows, codecs and drivers) is up to date, matching the...
    Replies
    2
    Views
    826
    Well, all that remains is to find someone who will add this render if it is a render.
    Well, all that remains is to find someone who will add this render if it is a render.
    Are there plans to support other video renderers? MadVR got added a while ago, but this a 'hardcoded' selection in the...
    Replies
    23
    Views
    18K
    • Sticky
    Yes, that's the one ! Beware because if you uncheck that box, it disappears and you can't reinstall it again that way.
    Yes, that's the one ! Beware because if you uncheck that box, it disappears and you can't reinstall it again that way.
    We have just released MediaPortal 1.39 - Endurance x86 and x64 version. Highlights of this release Bugfixes: [MP1-5257] - Skin...
    Replies
    15
    Views
    3K
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Hi everyone, I have been using it For 16 years now (from V1.1.1) and it has worked flawlessly. I only use TV Series and Moving...
    Replies
    2
    Views
    785
    Top Bottom