Search found 4 matches

by MagnusDaMan
29 Jul 2020, 19:50
Forum: Episode / Movie Naming Scheme
Topic: How to match "year - director - moviename.ext"
Replies: 8
Views: 3600

Re: How to match "year - director - moviename.ext"

Ok. That renaming works perfect if there is only the movie file itself. I removed the name of the director, since I don't need it. I want to add a library to it as well, so I changed it to: {fn.replaceAll(/(^(?:19|20)\d{2}) - (.+) - (.+)$/),'./$3 ($1)/$3 ($1)'} and then it works perfect for one file...
by MagnusDaMan
29 Jul 2020, 12:39
Forum: Episode / Movie Naming Scheme
Topic: How to match "year - director - moviename.ext"
Replies: 8
Views: 3600

Re: How to match "year - director - moviename.ext"

After some testing neither of these work very well. When I create a preset (Named Movies and set datasource to TheMovieDB) and try {fn.replaceAll(/(^(?:19|20)\d{2}) - (.+) - (.+)$/),'$3 ($1) - $2'}, then "11940 - Anatole Litvak - City for Conquest.avi" becomes "City for Conquest (1940...
by MagnusDaMan
28 Jul 2020, 11:46
Forum: Episode / Movie Naming Scheme
Topic: How to match "year - director - moviename.ext"
Replies: 8
Views: 3600

Re: How to match "year - director - moviename.ext"

Oh yes!

Thank you!
As usual, when you see the solution, you think "Oh, it was that easy...".
It would have taken me some time to figure that one out though.

Works like a charm!
Thanks a lot.
by MagnusDaMan
28 Jul 2020, 10:20
Forum: Episode / Movie Naming Scheme
Topic: How to match "year - director - moviename.ext"
Replies: 8
Views: 3600

How to match "year - director - moviename.ext"

Hi. I am trying to figure out how to do the matchings for movies. I have worked with regular expressions in two other programming languages, but find this very hard. All my movies are in the format of "1984 - James Cameron - Peace and Love.mkv". If I want to have the result "Peace and...