I have been working on my renaming format for quite some time now and and am almost satisfied with what it does. But now I ran into an understanding problem of sorts, as I can't figure out how to handle additional files like artwork etc.
This is what I am using in order to clean up all my exsiting movie folders via the GUI:
Code: Select all
{any {if (info.ProductionCountries[0,1,2,3,4].join(', ').matchAll(/bangladesh|burma|china|hong.kong|india|indonesia|japan|korea|laos|macau|malaysia|maldives|mongolia|myanmar|nepal|north.korea|singapore|taiwan|thailand|viet.nam/)){'Eastern/'}}{''}}{any {if (genres.join(', ').matchAll(/^(?=.*action)(?=.*comedy)/))('Action-Comedy')}{if (genres.join(', ').matchAll(/^(?=.*action)(?=.*horror)/))('Action-Horror')}{if (genres.join(', ').matchAll(/^(?=.*action)(?=.*thriller)/))('Action-Thriller')}{if (genres.join(', ').matchAll(/^(?=.*drama)(?=.*comedy)/))('Comedy-Drama')}{if (genres.join(', ').matchAll(/^(?=.*action)(?=.*drama)/))('Action-Drama')}{if (genres.join(', ').matchAll(/^(?=.*horror)(?=.*comedy)/))('Horror-Comedy')}{if (genres.join(', ').matchAll(/animation/))('Animation')}{if (genres.join(', ').matchAll(/documentary/))('Doku')}{if (genres.join(', ').matchAll(/sci-fi/))('Sci-Fi')}{if (genres.join(', ').matchAll(/western/))('Western')}{genre}{'[No Genre]'}}/{norm = {it.upperInitial().lowerTrail().replaceTrailingBrackets().replaceAll(/[`´‘’?""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ").replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceAll(/\b[0-9](?i:th| nd|rd)\b/, { it.lower() }).replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)}; norm(n)} {if (norm(n) != norm(primaryTitle)) ' ['+norm(primaryTitle)+']'} {" ["+file.path.lower().replace(/dc/, 'director\'s cut').replaceAll('limited','limited release').replaceAll('directors','director\'s').replaceAll('-','').replaceAll(/director.s|theatrical/,'$0 Cut').matchAll(/(uncensored|uncut|unrated|remastered|ultimate|extended|director?s|theatrical|ultimate|final|bootleg|special|fan?edit?|limited|rifftrax|monstervision|youtube|hulu|netflix|vimeo|edited|edit|censored+)(?:.edition|.cut|.version|.edit|.release|.extended|.rip)?/)*.upperInitial()*.lowerTrail().sort().join('] [')+']'} ({y}{csv('c:/Program Files/FileBot/countrycodes.csv').subMap(info.ProductionCountries).values().join(', ')} {minutes}min)/{n.replaceAll(/[:|]/, "-")} ({y}{csv('c:/Program Files/FileBot/countrycodes.csv').subMap(info.ProductionCountries).values().join(', ')}) [{rating} {minutes}min] ({audios.collect{ aud -> allOf{any{aud.language.upper()}{'EN'}}{aud.format.lower().replace('ac-3','ac3')}{aud.channels+'ch'} }*.join(' ').join(', ').replace('8ch', '7.1').replace('7ch', '6.1').replace('6ch', '5.1').replace('3ch', '2.1').replace('2ch','stereo').replace('1ch','mono')}) [{vc} {video.frameRate}fps {vf}] {any{" ("+omdb.genres.take(3).join(', ')+")"}{" ("+genres.take(3).join(', ')+")"}}
Also there are some subfolder like .actors, extrafanart and extrathumbs.
How can I copy those files files together with the renaming process so that they simply are moved to the new folder?