Sort Sylvester Stallone movies
Sort Sylvester Stallone movies
Hello,
Please if someone can assist me, I'll be very grateful.
I have some video clips of various actors and I'm sorting to them in order.
I have some files named like this "Rocky 2_final fight_Sylvester Stallone". I intend to sort them by re-naming them the file to the actor the film is associated with followed by a digit to denote the number of files. For example:
- Sylvester Stallone 1
- Sylvester Stallone 2
- Sylvester Stallone 3
What code would I enter to make this happen? This might be forward, but I don't prefer to learn coding, so I can get to better grips with the FileBot. I purchased it to sort a few files and then more than likely I won't be using it.
If someone can assist me with the code, that'll be great.
Please if someone can assist me, I'll be very grateful.
I have some video clips of various actors and I'm sorting to them in order.
I have some files named like this "Rocky 2_final fight_Sylvester Stallone". I intend to sort them by re-naming them the file to the actor the film is associated with followed by a digit to denote the number of files. For example:
- Sylvester Stallone 1
- Sylvester Stallone 2
- Sylvester Stallone 3
What code would I enter to make this happen? This might be forward, but I don't prefer to learn coding, so I can get to better grips with the FileBot. I purchased it to sort a few files and then more than likely I won't be using it.
If someone can assist me with the code, that'll be great.
Re: Sort Sylvester Stallone movies

1.
Maybe something like this is close enough to what you want:
Code: Select all
{ny} with {actors.take(2)}
2.
Grouping and numbering by first actor is a bit more tricky:
Code: Select all
{ny} - {actors[0]} {model.findAll{ actors[0] in it.actors }.findIndexOf{ id == it.id } + 1}

Re: Sort Sylvester Stallone movies
Hi rednoah,
Thank you.
Would I replace "actors" in each of the codes with the name of the actor? So for example:
{ny} with {Sylvester Stallone.take(2)}
{ny} - {Sylvester Stallone[0]} {model.findAll{ Sylvester Stallone[0] in it.Sylvester Stallone}.findIndexOf{ id == it.id } + 1}
Plus, would I run the first code and then the second?
I appreciate your effort mate.
Thank you.
Would I replace "actors" in each of the codes with the name of the actor? So for example:
{ny} with {Sylvester Stallone.take(2)}
{ny} - {Sylvester Stallone[0]} {model.findAll{ Sylvester Stallone[0] in it.Sylvester Stallone}.findIndexOf{ id == it.id } + 1}
Plus, would I run the first code and then the second?
I appreciate your effort mate.
Re: Sort Sylvester Stallone movies
No. Why would you do that?
{actors} is a variable that will give the actors for the movie match, so the value is different for each movie.
{actors} is a variable that will give the actors for the movie match, so the value is different for each movie.
Re: Sort Sylvester Stallone movies
Pardon my ignorance. I'm clueless when it comes to executing codes.
Understood.
Would I run the first code and then the second?
Understood.
Would I run the first code and then the second?
Re: Sort Sylvester Stallone movies
Both format expressions given above are independent of each other. Just two possible solutions to your naming problem.
You may need to familiarize yourself with FileBot formats first though.
You may need to familiarize yourself with FileBot formats first though.
Re: Sort Sylvester Stallone movies
I was just wondering how the code would know which word in the original file name would be the actor.
Re: Sort Sylvester Stallone movies
Typically, FileBot works by identifying a movie from the filename, matching it to an online database, and then retrieve extra information such as actors or director from the internet on demand.
Re: Sort Sylvester Stallone movies
Each time I Fetch Data there are too many mis-matchs. It only re-named 6 files out of 540.
Any suggestions?
Re: Sort Sylvester Stallone movies
Screenshots and file paths please.
Read How to Request Help for details on how you can help me help you.
Read How to Request Help for details on how you can help me help you.

Re: Sort Sylvester Stallone movies
Sorry, remote assistance is not generally a service I provide.
Screenshots usually make it quite clear what you're trying to do. And file paths allow me to recreate your file structure for testing.
Screenshots usually make it quite clear what you're trying to do. And file paths allow me to recreate your file structure for testing.
Re: Sort Sylvester Stallone movies
He is asking about "video clips of various actors"
I think it's a bad idea to use normal online lookup here ?
the files can be named badly ?
if file e.g. "Rocky 2_final fight_Sylvester Stallone"
then use F2 aka offline mode
viewtopic.php?t=2072
with a format like this:
{fn.match(/Sylvester.Stallone|Some.other.dude/).space(' ')} {i}
for it to work you need to rename ALL of e.g. sly in 1 go
I think it's a bad idea to use normal online lookup here ?
the files can be named badly ?
if file e.g. "Rocky 2_final fight_Sylvester Stallone"
then use F2 aka offline mode
viewtopic.php?t=2072
with a format like this:
{fn.match(/Sylvester.Stallone|Some.other.dude/).space(' ')} {i}
for it to work you need to rename ALL of e.g. sly in 1 go
Re: Sort Sylvester Stallone movies
I see. Possibly. Best to wait for screenshots and file paths and more details from the OP so we can check what the OP is talking about exactly.