Does the String Replacements change the name of my files? (2 Viewers)

nzdreamer55

MP Donator
  • Premium Supporter
  • August 31, 2010
    465
    28
    San Luis Obispo, CA
    Home Country
    United States of America United States of America
    Sorry for the softball question. The FAQ was really helpful about string replacements, but I'm not sure if it changes the file name or just what the parsing engine sees.

    Also when would I use the "use as Tag" and "is Regex"?

    Thanks

    Steve
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    It does not modify file names, just internal rename for parser.

    If your replace patterns are using regular expressions, then you should set "is Regex". Read up on regular expressions to make your replacements very powerful.

    Use as tag just sets the replace pattern to a DB field which is basically file media "tags" (for example "1080p;HDTV;XviD;AC3"). I don't think it's used anywhere in the plugin but you can set some filters on this field I guess.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Technically it renames the files internally when you use the "Before" checkbox. This is useful for when your files are named wrong, but you do not want to rename them before you import.

    For example "Teen.Wolf.S01E01.720p.HDTV.x264-Tag.mkv" with string replacement "Teen.Wolf" -> "Teen Wolf (2011)" is imported correctly into:

    Teen Wolf (2011): Series Info

    without a need for manual interaction or any file renaming. It does mean you have to create the string replacement of course, but that is a one time deal. It can be used to add info such as the above example, but also to remove. For example having '&' or 'and' in a filename can cause conflicts in matching if the TheTVdB show is named the other way. By simply removing them from the filenames via string replacement you avoid any issues as the TheTVdB API will find them without.

    You can also use it to turn acronyms into full text for a proper match. A filename such as "BSG.S01E01.Pilot.avi" will fail to match, but add a string replacement for "BSG" -> "Battlestar Galactica (2003)" and you are good to go.
     

    Users who are viewing this thread

    Top Bottom