How can i get -iND if no group available and how can i get "Remux and other"

All about user-defined episode / movie / file name format expressions
Post Reply
Punx
Posts: 9
Joined: 27 Dec 2024, 15:53

How can i get -iND if no group available and how can i get "Remux and other"

Post by Punx »

I try to set my Movies Docus and Series in a specific Format
Seperator are only .
[Film- / Serien- / Doku-Titel]
[Jahr / Staffel]
[Zusatz] z.B. DC, Extended, Remastered
[German] NUR bei German-Uploads
[Dubbed] optional - falls gedubbed **
[Audiocodec] optional
[DL / ML] Dual- / Multilanguage
[Auflösung] z.B. 720p, 1080p
[Source] z.B. BluRay, DVD, WebDL, WebRip ***
[Videocodec] z.B. AVC, x264, xs65
[Remux / Extras] Remux optional - natürlich nur bei Remux-Releasen, ansonsten z.B. Regrade, Repack usw.
[Releasegroup] optional


My code

Code: Select all

{n.ascii().space('.')
.replace(':':'', '-':'', '&':'and')
.replace(ä:'ae', ö:'oe', ü:'ue')
.replaceAll(/&/,"and")
.replaceAll(/#/,"number")
.replaceAll("[^a-zA-Z0-9_-]", ".")
.replaceAll(/(?i)(?:(?:ABC|ATVP|AMZN|BBC|CBS|CC|CR|CW|DCU|DSNP|DSNY|FBWatch|FREE|FOX|HMAX|HULU|iP|LIFE|MTV|NBC|NICK|NF|RED|TF1|STZ)[.-])
?(?:WEB.?DL|WEB.?DLRip|WEB.?Cap|WEB.?Rip|HC|HD.?Rip|VODR|VODRip|PPV|PPVRip|iTunesHD|ithd|AmazonHD|NetflixHD|NetflixUHD|(?<=\d{3,4}[p].)WEB|WEB(?=.[hx]\d{3}))/,'WEB-DL')
.removeAll(/[()"',]/)}
.{y}
{'.'+tags.first().space('.')}
{".$ac"}
.
{ audioLanguages.size() > 2 ? 'ML.' : audioLanguages.size() > 1 ? 'DL.' : '' }
{audioLanguages.ISO3.take(1).join('+').upper().replace'DEU','GER'}


{".$vf"}
{".$source"}.
{
	if (hd ==~ /SD/)
		if (megabytes >= 700 && mbps >= 1.1)
			return 'DVDRip'
		else
			return 'TVRip'

	if (hd ==~ /HD|FHD|QHD/)
		if (gigabytes >= 1 && mbps >= 18)
			return 'BDRemux'
		else if (mbps >= 8)
			return 'BDRip'
		else if (mbps >= 2.2)
			return 'MicroHD'
		else
			return 'HDRip'

	if (hd ==~ /UHD/)
		if (gigabytes >= 1 && mbps >= 32)
			return 'UHDRemux'
		else if (mbps >= 16)
			return 'UHDRip'
		else
			return 'MicroUHD'
}
{".$vc"}
{ '.' + lang.ISO3 }
{'.'+fn.match(/forced/)}
{'-'+fn.match(/mediainfo/)}
{".$group"}
How can i get -iND if no group available
and how can i get "Remux and other "
Thx in Advance
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help by a Namingscheme ?

Post by rednoah »

This will get you started:

Format: Select all

{
	// Name (Year)
	ny.space('.')
}
{
	// Directors Cut
	'.[' + edition.space('.') + ']'
}
{
	// German Movie? GERMAN
	// Amercian Movie with German Audio Stream? DUBBED
	language =~ /deu/ ? '.[GERMAN]' : audioLanguages =~ /deu/ ? '.[DUBBED]' : null
}
{
	// AC3
	'.[' + ac + ']'
}
{
	// 2 Audio Streams? DUAL
	// >3 Audio Streams? MULTI
	audioLanguages.size() == 2 ? '.[DUAL]' : audioLanguages.size() >= 3 ? '.[MULTI]' : null
}
{
	// 1080p
	'.[' + vf + ']'
}
{
	// DVDRip
	'.[' + vs + ']'
}
{
	// x264
	'.[' + vc + ']'
}
{
	// REPACK
	'.[' + fn.match(/REMUX|REPACK/) + ']'
}
{
	// iND
	'-' + any{ group }{ 'iND'  }
}
We can discuss each {...} block independently in a second step, as you run tests and narrow down what you want exactly.
:idea: Please read the FAQ and How to Request Help.
Punx
Posts: 9
Joined: 27 Dec 2024, 15:53

Re: Help by a Namingscheme ?

Post by Punx »

Thx for the quick reply

this gives me
Largo.Winch.-.Tödliches.Erbe.(2008).[DUBBED].[DTS].[DUAL].[1080p].[x264]-iND
Largo.Winch.II.-.Die.Burma-Verschwörung.(2011).[DUBBED].[DTS].[1080p].[BluRay].[x264]-FiSSiON
Largo.Winch.Der.Preis.des.Geldes.(2024).[DUBBED].[AAC].[1080p].[WEB-DL].[AVC]-iND

Thats seems at first correct

how can i change Spaces and - with .
Also i need ASCII Format and no []!"§$%&/()=²³{} and so on
and the Source like

Code: Select all

{
	if (hd ==~ /SD/)
		if (megabytes >= 700 && mbps >= 1.1)
			return 'DVDRip'
		else
			return 'TVRip'

	if (hd ==~ /HD|FHD|QHD/)
		if (gigabytes >= 1 && mbps >= 18)
			return 'BDRemux'
		else if (mbps >= 8)
			return 'BDRip'
		else if (mbps >= 2.2)
			return 'MicroHD'
		else
			return 'HDRip'

	if (hd ==~ /UHD/)
		if (gigabytes >= 1 && mbps >= 32)
			return 'UHDRemux'
		else if (mbps >= 16)
			return 'UHDRip'
		else
			return 'MicroUHD'
also i changed

Code: Select all

{
	// German Movie? GERMAN
	// Amercian Movie with German Audio Stream? DUBBED 
	language =~ /deu/ ? '.[GERMAN]' : audioLanguages =~ /deu/ ? '.[GERMAN]' : null
}
bc of if GERMAN as Language it hat to be in it

thast give

Largo.Winch.-.Tödliches.Erbe.(2008).[GERMAN].[DTS].[DUAL].[1080p].[x264]-iND
Largo.Winch.II.-.Die.Burma-Verschwörung.(2011).[GERMAN].[DTS].[1080p].[BluRay].[x264]-FiSSiON
Largo.Winch.Der.Preis.des.Geldes.(2024).[GERMAN].[AAC].[1080p].[WEB-DL].[AVC]-iND



I tried with a few steps an now im a t

Code: Select all

{
	// Name (Year)
	{n.ascii().space('.')
	.replace(':':'', '-':'', '&':'and')}
	
}
{
'.' + y + ''
}
{
	// Directors Cut
	'.' + edition.space('.') + ''
}
{
	// German Movie? GERMAN
	// Amercian Movie with German Audio Stream? DUBBED
	language =~ /deu/ ? '.GERMAN' : audioLanguages =~ /deu/ ? '.GERMAN' : null
}
{
	// AC3
	'.' + ac + ''
}
{
	// 2 Audio Streams? DUAL
	// >3 Audio Streams? MULTI
	audioLanguages.size() == 2 ? '.DUAL' : audioLanguages.size() >= 3 ? '.MULTI' : null
}
{
	// 1080p
	'.' + vf + '.'
}
{{ if (hd ==~ /SD/) if (megabytes >= 700 && mbps >= 1.1) return 'DVDRip' else return 'TVRip'

if (hd ==~ /HD|FHD|QHD/)
	if (gigabytes >= 1 && mbps >= 18)
		return 'BDRemux'
	else if (mbps >= 8)
		return 'BDRip'
	else if (mbps >= 2.2)
		return 'MicroHD'
	else
		return 'HDRip'

if (hd ==~ /UHD/)
	if (gigabytes >= 1 && mbps >= 32)
		return 'UHDRemux'
	else if (mbps >= 16)
		return 'UHDRip'
	else
		return 'MicroUHD'

}}
{
	// DVDRip
	'.' + vs + ''
}
{
	// x264
	'.' + vc + ''
}
{
	// REPACK
	'.' + fn.match(/REMUX|REPACK/) + ''
}
{
	// iND
	'.' + any{ group }{ 'iND'  }
}
thats works 4 me and i can live with it ;)

Largo.Winch..Toedliches.Erbe.2008.GERMAN.DTS.DUAL.1080p.BDRip.x264.iND
Largo.Winch.II..Die.BurmaVerschwoerung.2011.GERMAN.DTS.1080p.MicroHD.BluRay.x264.FiSSiON
Largo.Winch.Der.Preis.des.Geldes.2024.GERMAN.AAC.1080p.MicroHD.WEB-DL.AVC.iND

SOmetimne a little push is helpfull thx in Advanced
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help by a Namingscheme ?

Post by rednoah »

You can replace all punctuation like so:

Format: Select all

{ n.ascii().replace('&':'and').replaceAll(/\p{Punct}/, ' ').space('.') }

:idea: Your code turns " - " into "..". That's probably not intentional.
:idea: Please read the FAQ and How to Request Help.
Punx
Posts: 9
Joined: 27 Dec 2024, 15:53

Re: Help by a Namingscheme ?

Post by Punx »

Love it thx
Post Reply