Any questions? Need some help?
diedrichg
Posts: 3 Joined: 19 Feb 2017, 04:16
Post
by diedrichg » 19 Feb 2017, 05:12
I need some help please. I'm completely ignorant to this type of code, how would I get this to work? Also, does this code go in the format editor?
Code: Select all
M:/Movies/{n} ({y})/{n} ({y}) - {vf}{fn.match(/(?i)-banner|-fanart|-fanart1|-fanart2|-fanart3|-fanart4|-fanart5|-fanart6|-fanart7|-fanart8|-clearart|-logo|-poster|-landscape/)}
I need to:
Rename the movie.
Rename the associated fanart and nfo to the movie name but I need to keep the -logo, -fanart1, fanart2, etc at the end of their respective files.
Finally, move all these files to the main movie folder.
Current structure
Desired structure
rednoah
The Source
Posts: 23953 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 19 Feb 2017, 13:29
Looks like you're on the right track. What's not working?
diedrichg
Posts: 3 Joined: 19 Feb 2017, 04:16
Post
by diedrichg » 19 Feb 2017, 15:38
Weird! I was given some sort of script error last night. Today, it's working! Awesome. Thanks and sorry for taking up your time!
diedrichg
Posts: 3 Joined: 19 Feb 2017, 04:16
Post
by diedrichg » 21 Feb 2017, 01:51
I remember now, I do have one additional question.
In the screenshot above in post # 3 - You can see that the Original Files are named fanart, fanart2, fanart3 as named by Emby. But on the New Names, it's not retaining the numerical order. Is it possible to retain the numerical order? Emby won't be happy if I don't retain this format.
rednoah
The Source
Posts: 23953 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 21 Feb 2017, 03:42
Match
/fanart[0-9]/ instead of
/fanart/ in your format?
e.g.
Code: Select all
fn.match(/banner|fanart[0-9]*|clearart|logo|poster|landscape/)