Exclude Specific Folder (1 Viewer)

Strumiker

New Member
July 10, 2007
2
0
46
Home Country
United States of America United States of America
I've searched the forums and found some related posts with some ideas on how to do this, but I've found those posts to leave a dead end on the actual result.

My structure is fairly simple:
I:\TV Shows\(name of show)\(season xx)\(properly named episodes).ext

This next part is to explain why I'm doing what I'm doing:
I use theRenamer to rename the episodes. The problem I'm running into is this. I have a Fetch import folder that theRenamer uses so that I can download all shows to a specific folder and when I hit a button in theRenamer it JUST scans that folder to rename and move to the proper structure above. The cause for wanting to exclude a folder is because of how windows moves files due to network paths I guess. When we use theRenamer to rename and move from our Fetch folder, this is the outcome:

\\d0rkfiles\TV Shows\!-Unsorted-!\(unsorted and poorly named tv shows)
to
\\d0rkfiles\TV Shows\
Works fast since Windows seems to move it locally, not dealing with the network

\\d0rkfiles\!-Unsorted-!\
to
\\d0rkfiles\TV Shows\
works very slowly since Windows seems to movie it via the network - doubly slow since we are on laptops using wireless. It seems to take the long way of moving the files.

So that's what I'm doing, hopefully that makes sense. If it does, I would like MP-TVSeries to filter out and ignore whatever is in that \\d0rkfiles\TV Shows\!-Unsorted-!\ folder.

From what I've read in other posts, I would assume the fix is to use Regular Expressions to return negative on files that have "!-Unsorted-!" in the path (i can easily rename that to something easier if it helps). I tried my hand on modifying the current Regex, but I think I'm completely missing the boat on it.

Any help or suggestions would be wonderful :) And I'll gladly explain anything better if I need to.
 

mastyman

MP Donator
  • Premium Supporter
  • June 1, 2010
    364
    68
    Auckland
    Home Country
    New Zealand New Zealand
    Can you not just have the !-Unsorted-! folder outside of the TV Shows?

    i.e

    I:\TV Shows
    I:\!-Unsorted-!

    instead of
    I:\TV Shows
    I:\TV Shows\!-Unsorted-!
     

    Strumiker

    New Member
    July 10, 2007
    2
    0
    46
    Home Country
    United States of America United States of America
    I put why I don't want to do that. Moving from two different roots like that from another computer over the network makes Windows want to transfer files over the network instead of using local move commands. This makes the moving process take forever. I guess one thing I haven't tried and I will now just to test, would be to do something like:

    I:\TV Shows\TV Shows
    I:\TV Shows\!-Unsorted-!

    and just make one share of I:\TV Shows

    Still, it would be nice to have an exclusion feature in the the plugin.

    Just keeping it in the same share seems to be working well. I apologize for clogging up the forums with this. Thanks for the reply too :)
     

    Pilgrimon

    Portal Pro
    April 15, 2010
    63
    1
    is there a solution for excluding specififed subfolders?

    if not admin: maybe you can add this by placing a dummy-filde ".xclude" or something like that in the specifided folder, which should be excluded??

    having 2 different folder locations (include / exclude on root level) is not a solution to me, because this messes up all my episodes and stuff...
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    is there a solution for excluding specififed subfolders?

    if not admin: maybe you can add this by placing a dummy-filde ".xclude" or something like that in the specifided folder, which should be excluded??

    having 2 different folder locations (include / exclude on root level) is not a solution to me, because this messes up all my episodes and stuff...

    So instead of making a simple adjustment into:

    Share = "I:\TV Shows\" with the subfolders "\\Share\Sorted" and "\\Share\Unsorted"

    where "\\Share\Sorted" is the path monitored by MP-TVSeries and "\\Share\Unsorted" your theRenamer temp folder. Thus allowing fast remote file transfer ability from one folder to another, since they are both on the same share.

    You want some weird exclusion system? How does this mess up all your episodes?
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    You can always modify the parsing expressions (similarly to how sample files are excluded) :)
     

    Pilgrimon

    Portal Pro
    April 15, 2010
    63
    1
    is there a solution for excluding specififed subfolders?

    if not admin: maybe you can add this by placing a dummy-filde ".xclude" or something like that in the specifided folder, which should be excluded??

    having 2 different folder locations (include / exclude on root level) is not a solution to me, because this messes up all my episodes and stuff...

    So instead of making a simple adjustment into:

    Share = "I:\TV Shows\" with the subfolders "\\Share\Sorted" and "\\Share\Unsorted"

    where "\\Share\Sorted" is the path monitored by MP-TVSeries and "\\Share\Unsorted" your theRenamer temp folder. Thus allowing fast remote file transfer ability from one folder to another, since they are both on the same share.

    You want some weird exclusion system? How does this mess up all your episodes?

    well, my problem is the following:

    I got a series in 2 versions on my harddisk: h264 and some additional episodes as divX, too.

    example (note, path are just examples):

    Code:
    path to series\{HDTV h264-files}
    path to series\divX\{low resolution divX-files}

    Of course i don't want that sd-files in my tvseries list in that case.

    i got all my series structured and organized on a seperate harddisk, that's why i don't want to move the divX-folder to a different location: All is unstructured then and confusing and i no longer have all episodes of one series together in one location.
    You got what i mean?


    One solution i know from my poppcorn streaming client is the following:

    Folders containing special 0byte-files will not be included.

    http://www.networkedmediatank.com/showthread.php?tid=46095&pid=434183#pid434183 said:
    1.3) How to exclude files from scanning and aggregation

    Exclude Option for Scanning
    When you enter a device and activate the NMJ, it will scan the device for video-, music- and photo files.
    You can exclude folders with different options.
    As example, if you have a Yamj folder on your Device then i would place the ".no_all.nmj" into the folder,
    if you don't do that it will aggregate all your images inside the yamj folder and show them on the Photo NMJ.
    If you place the file into an folder then it will exclude all files and folder in this folder from scanning and aggregation.

    Exclude everything
    - Create a file called ".no_all.nmj" or download the attached exclude.zip, place it on the device, or into a folder which you wanna exclude.

    Exclude Video files
    - Create a file called ".no_video.nmj" or download the attached exclude.zip, place it on the device, or into a folder where you wanna exclude Videofiles.

    Exclude Music files
    - Create a file called ".no_music.nmj" or download the attached exclude.zip, place it on the device, or into a folder where you wanna exclude Musicfiles.

    Exclude Images
    - Create a file called ".no_photo.nmj" or download the attached exclude.zip, place it on the device, or into a folder where you wanna exclude Images.

    What do you think about this?
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    well, my problem is the following:

    example (note, path are just examples):

    Code:
    path to series\{HDTV h264-files}
    path to series\divX\{low resolution divX-files}

    Of course i don't want that sd-files in my tvseries list in that case.

    Your problem is best solved by adjusting the parsing expression then as indicated by Inker. The harder way would be to detect the "divx\" part of the pathname and refuse to parse the episode, but an easier way would be to adjust the extension that is accepted from an "accept all", to "mkv". I'm pretty sure your h264 files are all in the MKV Matroska container format and your low resolution files as AVI, otherwise this wouldn't work.

    In the case that it will, then for the default filename parsing expression you do the following; edit the very end bit that shows "(?<ext>[^.]*)$" into "(?<ext>mkv)$"

    Be sure to edit all the other parsing expressions then as well, or disable them, as more then likely all your files are parsed with the filename expression which is listed first.
     

    Pilgrimon

    Portal Pro
    April 15, 2010
    63
    1
    hm..well... okay, thanks.

    The exclusion is not due to specified extension. There is no criteria to find specified folders to be excluded by local naming.

    In my case the only way which will help me is that i can specify exactly the subfolders i don't want to have parsed in tvSeries.
    I don't see an other solution getting me the results i need :(

    Anyway, thx for your help.
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Try this:
    Go to string replacements, make sure you tick "run before matching" and make a new one that goes from <name of folder to exclude> to "Sample". Do this for every folder you want to exclude.

    The default parsing expressions should exclude folders named sample.
     

    Users who are viewing this thread

    Top Bottom