WEBSource for logo-free releases
Posted: 12 Jan 2018, 18:42
				
				Given the recent surge in web releases I'm trying to add information specific to this to my naming scheme.
Usually it's quite standard with:
But there's an unusual field: WEBSource.
For example: Nashville.S06E02.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS
What I'd like to propose is to have a snippet to allow this to be included in the final rename.
This is as far as I got but it doesn't seem well written:
Ideally it should check against a list which could be more easily edited, like FileBot already does for example for the source binding using ReleaseInfo.properties.
			Usually it's quite standard with:
Code: Select all
n.s00e00.vf.WEBSource.source.AUDIO.vc-groupFor example: Nashville.S06E02.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS
What I'd like to propose is to have a snippet to allow this to be included in the final rename.
This is as far as I got but it doesn't seem well written:
Code: Select all
{ 
	def isWeb = (source ==~ /WEB.*/)
	def lfr = isWeb ? (fn =~ /(AMZN|HBO|HULU|NF|iT)\.(WEB)/) : null
	ret = allOf{lfr[0][1]}{source}.join(".")
	return ret
}