Search found 4 matches

by screamjojo
19 Apr 2024, 17:37
Forum: Scripting and Automation
Topic: Renaming with a word search inside nfo file
Replies: 5
Views: 5776

Re: Renaming with a word search inside nfo file


1. Select only movie files. See How do I process only specific kinds of files? for details.

2. Rewrite file paths using the following format:
{ files.any{ it.name =~ /[.]nfo$/ && it.text =~ /(?i)VFQ/ } ? '.VFQ' : null }
:idea: {files} is a built-in binding that gives you the "group by same ...
by screamjojo
02 Feb 2024, 11:57
Forum: Scripting and Automation
Topic: Renaming with a word search inside nfo file
Replies: 5
Views: 5776

Re: Renaming with a word search inside nfo file

Thank you it works perfectly !
by screamjojo
02 Feb 2024, 09:14
Forum: Scripting and Automation
Topic: Renaming with a word search inside nfo file
Replies: 5
Views: 5776

Re: Renaming with a word search inside nfo file

Hello,
Yes my path is like this :

Avatar.2009.1080p.mkv
Avatar.2009.1080p.nfo

:?: Can we assume that movies are already organized into movie folders with one movie / NFO file per folder?

Yes exactly, and sometimes with a sample file.

And I only need to rename the mkv because the nfo will not ...
by screamjojo
01 Feb 2024, 23:42
Forum: Scripting and Automation
Topic: Renaming with a word search inside nfo file
Replies: 5
Views: 5776

Renaming with a word search inside nfo file

Hello,

I've a folder with a mkv file and a nfo file. I would like to search a key word inside the nfo for renaming the mkv file.
I've found
(model.any{id == it.id && it.ext == 'nfo' && it.f.text =~ /(?i)VFQ/}) {return '.VFQ'})
but it works only if the folder is the input, but if the mkv file is ...