Ignore files with matching pattern? (1 Viewer)

mbuzina

Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Hi all,

    Thanks for the interesting plugin! I am starting to use it now and would like to automate my recording workflow as much as possible. I am using the great episodescanner tool to fill season & episode info in my EPG and I would like TV Series to recognize series in my recording series folder. Some are not really series though and should be ignored. I can recognize them since they do not have SxEy in it (I surround SxEy with - resulting in -SxEy- which TV series ignores and I can parse for -- if I want a non-series entry).

    So can I enter a filter criteria of "if filname contains "--" ignore the file and automate the parsing?

    :D:D
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    So you would like it to import files that are like SxEy but ignore series that include SxEy?

    You can either modify the parsing expressions that deal with SxEy to require a non "-" before and after, or you can create a regex string replacement that turns -S\dE\d- into something unparsable, like ignore.

    Or since you already surround the SxEy where u don't want, change this to something like SeasonxEpisodey or some other format that the parsing expressions ignore.

    Or am I misunderstanding?
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Remember to use: -S\d+E\d+- or it will only work on single digit seasons/episodes.
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Maybe I did not explain well enough, so some samples:
    I named my series as follows
    <SeriesName> -SxEy- <Title> (Channel - Date).ts (just told TV server to do it this way)
    Now I record a few things in advanced recording for which I do not have series information, resulting in:
    <ProgramName> -- (Channel - Date) or sometimes
    <ProgramName> -- <Title> (Channel - Date)

    I would like to ignore the last two.

    It may be better since I discovered the "Ignore" option when new Series are found (this helps a lot), so I am alerted only once and not every time the Program is recorded.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I named my series as follows
    <SeriesName> -SxEy- <Title> (Channel - Date).ts (just told TV server to do it this way)

    Files are recognized based on the Parsing Expressions that are enabled.

    The above filename scheme would relate to the first/primary parsing expression. If you simply disable all the others, then nothing else (such as those 2 other files) will match, and they will all be ignored.

    They will show as yellow entries on step 1 of the import wizard, but they will never be auto-checked and used for step 2+ unless you manually check the boxes for correction in the following steps.
     

    Users who are viewing this thread

    Top Bottom