Search found 3 matches

by TheFireNinja
10 Apr 2024, 03:08
Forum: Episode / Movie Naming Scheme
Topic: How can I add {edition-"words from file name"} to file?
Replies: 3
Views: 501

Re: How can I add {edition-"words from file name"} to file?

rednoah wrote: 08 Apr 2024, 03:56 Here's how I'd write it:

Format: Select all

{ ny.colon(' ') } { vf } { vc } { '{edition-' + fn.match(/Prelims|Early.Prelims/).space(' ') + '}' }
:arrow: Match information from the file path
That makes sense and is much cleaner. Thanks for the reply. Showed me how to use the + symbol correctly.
by TheFireNinja
08 Apr 2024, 02:55
Forum: Episode / Movie Naming Scheme
Topic: How can I add {edition-"words from file name"} to file?
Replies: 3
Views: 501

Re: How can I add {edition-"words from file name"} to file?

I think I figured it out. I used the following and it seems to work as desired:

Groovy: Select all

{ ny.colon(' ') } {vf} {vc} 
{
	def ufc = fn.matchAll(/Prelims|Early.Prelims/)
	def edition = ufc.join(' ').replace('.':' ')
	'{edition-' + edition + '}'
}
by TheFireNinja
08 Apr 2024, 01:20
Forum: Episode / Movie Naming Scheme
Topic: How can I add {edition-"words from file name"} to file?
Replies: 3
Views: 501

How can I add {edition-"words from file name"} to file?

I'm seperating the Prelims and Early Prelims of my UFC fights as editions. How do I have it recognize either Prelims or Early.Prelims from the file name and make that the edition name (while also changing the . in " Early.Prelims " to a space)? Starting with UFC.261.Usman.vs.Masvidal.2.Pre...