Need Help With File Selector Expression Code
Posted: 16 Mar 2022, 08:24
What I want to do:
[*]Import only MKV, MP4, and SRT files
[*]Import only files that don't include "sample" or "trailer" in the filename.
[*]Import only files that aren't in a separate folder names "Featurettes", "Extras", or "Specials".
[*]Import only files with a runtime of more than 60 minutes.
[*]Import only files that are not in the SxE format.
[*]Import only files that are not in absolute numbering format.
[*]After import and rename, move files to a newly created folder with the same name as the files, in a specific path (F:\Movies & TV\Movies).
Here's the script I have:
File selector expression:
Format expression:
Obviously the file selector expression does not include everything I want it to do, nor is it in correct format. I just mixed and match code from other posts. I have no idea what the syntax for the file selector expression is, nor how to write the correct syntax for my purposes. Unfortunately, I also could not find a complete list of syntax or expressions anywhere, so i'm posting here for help with this.
My end goal is to have 3 presets, all doing the same thing, but one for movies (this one), one for TV, and one for anime.
If anyone could help me with this, or give me tips/guidance on the syntax, I would be grateful, thanks.
[*]Import only MKV, MP4, and SRT files
[*]Import only files that don't include "sample" or "trailer" in the filename.
[*]Import only files that aren't in a separate folder names "Featurettes", "Extras", or "Specials".
[*]Import only files with a runtime of more than 60 minutes.
[*]Import only files that are not in the SxE format.
[*]Import only files that are not in absolute numbering format.
[*]After import and rename, move files to a newly created folder with the same name as the files, in a specific path (F:\Movies & TV\Movies).
Here's the script I have:
File selector expression:
Code: Select all
only{ ext =~ /mp4|mkv/ }{ fn.match(/sample|trailer/) } minutes > 60 && !file.isEpisode()
Code: Select all
{movie}/{movie}
My end goal is to have 3 presets, all doing the same thing, but one for movies (this one), one for TV, and one for anime.
If anyone could help me with this, or give me tips/guidance on the syntax, I would be grateful, thanks.