Not matching filename data any longer
Posted: 20 Feb 2017, 19:38
I'm not sure if a new update caused this, or if it's something I caused that i hadn't noticed long ago.
I know at one point it did work. now it's not.
it matches the 3D formats just fine. but the extra info. like 'Extended Edition' it's not matching and adding to the name as [Extended Edition] or Widscreen, or Uncut edit, etc, etc, I'll admit i'm not great at regedit and haven't had time to look at it for the past few months, and it kinda looks like there may be some redundant stuff there for the 3D as well. I did notice when i put a '|' before the "(uncensored" it started putting [Extended] but it put it twice (once for the filename, and once for the foldername that it matched i'm sure. also it left out the 'Edition' that it should of put as well.
Thanks,
-Dev
I know at one point it did work. now it's not.
it matches the 3D formats just fine. but the extra info. like 'Extended Edition' it's not matching and adding to the name as [Extended Edition] or Widscreen, or Uncut edit, etc, etc, I'll admit i'm not great at regedit and haven't had time to look at it for the past few months, and it kinda looks like there may be some redundant stuff there for the 3D as well. I did notice when i put a '|' before the "(uncensored" it started putting [Extended] but it put it twice (once for the filename, and once for the foldername that it matched i'm sure. also it left out the 'Edition' that it should of put as well.
Code: Select all
{" ["+file.path.lower().replaceAll(/tv/,'TV').replace(/ws/, 'widscreen').replace(/dc/, 'director\'s cut').replaceAll('limited','limited release').replaceAll('directors','director\'s').replaceAll('-','').replaceAll(/director.s|theatrical/,'$0 Cut').replaceAll(/commentary/,'With Commentary').matchAll(/(3d|half|full|h?sbs|f?sbs|(?i)(?<=^|[^a-z])hou(?=$|[^a-z])|(?i)(?<=^|[^a-z])fou(?=$|[^a-z])|f.ou|anaglyth)(?:.sbs|(?i)(?<=^|[^a-z])cat(?=$|[^a-z])) (uncensored|uncut|unrated|remastered|ultimate|extended|director.s|theatrical|ultimate|final|bootleg|special|fan.edit.|with.commentary|limited|rifftrax|monstervision|youtube|hulu|netflix|vimeo|edited|edit|censored|english|fullscreen|widescreen|vhs|tv.movie|criterion.collection|banned|unleashed|renegade|lifetime|hallmark+)(?:.edition|.cut|.version|.edit|.release|.extended|.dub|.rip)?/)*.upperInitial()*.lowerTrail().sort().join('] [').replaceAll('Tv','TV')+']'}{def map=['3d':'3D','hsbs':'Half-SBS','halfsbs':'Half-SBS','fsbs':'Full-SBS','fullsbs':'Full-SBS','sbs':'SBS','halfou':'Half-OU','fullou':'Full-OU','overunder':'OU','anaglyph':'Anaglyph']; " ("+ ((file.path.lower().contains(/3d/)) ? '' : '3D ')+ file.path.lower().replaceAll('half-ou','halfou').replaceAll(/(?i)(?<=^|[^a-z])hou(?=$|[^a-z])/,'halfou').replaceAll(/(?i)(?<=^|[^a-z])fou(?=$|[^a-z])/,'fullou').replaceAll(/(?i)(?<=^|[^a-z])ou(?=$|[^a-z])/,'overunder').replaceAll(/[\W]/, "").replaceAll("3dvd","3.dvd").matchAll(/3d(?!.*?3d)|hsbs(?!.*?hsbs)|halfsbs(?!.*?halfsbs)|fsbs(?!.*?fsbs)|fullsbs(?!.*?fullsbs)|sbs(?!.*?sbs)|halfou(?!.*?halfou)|fullou(?!.*?fullou)|overunder(?!.*?overunder)|anaglyph(?!.*?anaglyph)/).findResults{ map[it]}.sort().join(' ')+')'}
Thanks,
-Dev