Filter out subfolders (1 Viewer)

Rick164

MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Hi,

    Sabnzbd creates temporary folders for unpacking in it's destination folder(i.e. %:\Tv shows\UNPACK_), during this process the file names also don't have the proper names and thus makes mp-tvseries search and give a user selection popup for the proper name.

    When you wait too long for selecting the proper name(like during the night) it will will search forever and mediaportal has to be restarted before mp-tvseries can resume it's importer process before displaying the new episodes, have not created a bug report or collected any logs for this but can post them if need be.

    Is it possible to make MP-tvseries filter out certain sub folders(user inputted strings/regexp)?
    For instance the once that sabnzbd currently uses are:

    %:\Tv shows\UNPACK_^<show name> (temporary folder)
    %:\Tv shows\FAILED_<show name> (permanent folder if failed)
    %:\Tv shows\UNDERSIZED_<show name> (permanent folder)
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Dont set SABnzb working directories as your import folders...that is not a good idea. Use SABs post script functionality to move your files to your working directory after SAB has extracted and renamed the file.
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Tried that but it would break Sickbeard (Sick Beard - Internet PVR for your TV Shows) support, as it scans the downloaded tv show folder and renames/moves/deletes accordingly(uses it's own post processing script).
    The alternate way in sickbeard is to make it unpack in the temporary location and then move it to the tv folder, but it would need to post process the entire tv folder every x minutes and rename/replace it afterwards.
    But that is slow and not perfect as it will walk thru each folder/ file instead of just that newly created folder.
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    You can of course alter the parsing regex to fail on certain subdirs. Since you mentioned regex I assume you know what it is and how to modify them. If not pls post some concrete examples, should be relatively easy to do.

    Doing so, will however prevent you from automatically getting updated parsing regex when the plugin is updated, you would have to manually reset them and then modify them again to exclude your subfolders.
     

    Users who are viewing this thread

    Top Bottom