Page 1 of 1

Rename with exisiting info regardless if there is a "tag" missing

Posted: 27 Jul 2020, 15:17
by abandonow
(I'm still pretty new to Filebot, and experimenting.)

I currently have

Code: Select all

'{plex.name}/{plex.name}{" $tags"}{" "}{" [$vf - $source $hdr - $ac $channels - $vc]"}'
which idealy would give me:

Code: Select all

1917 (2019)/1917 (2019) [2160p HDR10+ - BluRay - MLP 7.1 - x265].mkv
Unfortunetaly if the videofile does not contain HDR, nothing of the remaing info is added either. Is there a way to do that (except wrapping all in individual {} – I would very much lik to use "-" as a separator. And wrapping all individually would i worst case leave me with a filename "Movietitle (year) - - - -.mkv"

Thanks!

Re: Rename with exisiting info regardless if there is a "tag" missing

Posted: 27 Jul 2020, 16:52
by kim

Code: Select all

{plex.derive{' ' + tags.join(' ')}{' [' + allOf{vf}{source}{hdr}{ac}{channels}{vc.replace('AVC','x264').replace('HEVC','x265')}.join(' - ') + ']'}.tail}

search and you will find ;)
newbie help - naming UHD or 4K or 2160p and REMUX plus more

Re: Rename with exisiting info regardless if there is a "tag" missing

Posted: 27 Jul 2020, 16:58
by rednoah
e.g. easy, but structurally complex to allow for non-uniform grouping:

Code: Select all

{plex.derive
	{" " + tags}
	{" " + [allOf
		{vf}
		{allOf
			{source}
			{hdr}
			.join(" ")
		}
		{allOf
			{ac}
			{channels}
			.join(" ")
		}
		{vc}
		.join(" - ")]
	}
	.tail
}

Re: Rename with exisiting info regardless if there is a "tag" missing

Posted: 28 Jul 2020, 09:51
by abandonow
Thanks guys!