I want to use Filebot to rename my training tutorials which have no media data into a plex format and I discovered that there is a plain file mode but I don't have adequate knowledge to tweak the format just right. So it isn't giving me the right result. Please any help will be appreciated.
https://imgur.com/a/JZ8oVhx
https://pastebin.com/6mEJZgEf
Note: I just noticed you have an app in Synology NAS, I still like using the Synology Drive to make changes to the folders because using Synology Operating System is slower than I am used to.
Rename my training tutorial
Re: Rename my training tutorial



Format: Select all
{
# take the parent parent folder name; remove [...] and (...)
def n = folder.dir.name.removeAll(/\[.+?\]/).removeAll(/\(.+?\)/)
# take the first number from the parent folder name
def s = folder.name.match(/\d+/)
# take the first number from file name
def e = fn.match(/\d+/)
# take the text after the first number from the file name
def t = fn.after(/\d+/)
"$n/Season $s/$n - S${s}E${e} - $t"
}
Code: Select all
[Class101] Fairy-Tale, Cotton Candy-like iPad Illustration Techniques by 43 (Korean, Eng sub)/Season 01-Welcome!/01 Meet Your Instructor 43!.mp4
[Class101] Fairy-Tale, Cotton Candy-like iPad Illustration Techniques by 43 (Korean, Eng sub)/Season 01-Welcome!/02 Introduction to the Course.mp4
[Class101] Fairy-Tale, Cotton Candy-like iPad Illustration Techniques by 43 (Korean, Eng sub)/Season 01-Welcome!/03 Introduction to the Materials.mp4
Code: Select all
Fairy-Tale, Cotton Candy-like iPad Illustration Techniques by 43/Season 01/Fairy-Tale, Cotton Candy-like iPad Illustration Techniques by 43 - S01E01 - Meet Your Instructor 43!
Fairy-Tale, Cotton Candy-like iPad Illustration Techniques by 43/Season 01/Fairy-Tale, Cotton Candy-like iPad Illustration Techniques by 43 - S01E02 - Introduction to the Course
Fairy-Tale, Cotton Candy-like iPad Illustration Techniques by 43/Season 01/Fairy-Tale, Cotton Candy-like iPad Illustration Techniques by 43 - S01E03 - Introduction to the Materials
Note that there is no beginner-friendly WebUI for Plain File Mode. You can however use filebot on the command-line via SSH if you must process files locally. I'd use the Desktop application and rename files via network shares though, for convenience since it's a one-off task.
Re: Rename my training tutorial
Thank you for the help. An new problem occured which is changing location. I wanted the video renamed to be in the same place but the location changes.
Original Location:
https://pastebin.com/KzGLQc3m
Proposed New Location:
https://imgur.com/a/d3sGekk
So it is almost accurate but it moves away from the Art folder.
Note: The reason why it's not in Cloud Storage is that it also had the same problem of the location changing, so I tried my network server, and got same problem. Case in point:
https://imgur.com/a/82WGS98
Any help will be appreciated. Thanks.
Original Location:
https://pastebin.com/KzGLQc3m
Proposed New Location:
https://imgur.com/a/d3sGekk
So it is almost accurate but it moves away from the Art folder.
Note: The reason why it's not in Cloud Storage is that it also had the same problem of the location changing, so I tried my network server, and got same problem. Case in point:
https://imgur.com/a/82WGS98
Any help will be appreciated. Thanks.
Re: Rename my training tutorial
Also is there a video tutorial on how to do specific formatting so I could fix the other videos myself?
Re: Rename my training tutorial


Format: Select all
{
# absolute file path of the parent parent parent folder (e.g. Art folder)
folder.dir.dir
}
/
{
def n = folder.dir.name.removeAll(/\[.+?\]/).removeAll(/\(.+?\)/)
def s = folder.name.match(/\d+/)
def e = fn.match(/\d+/)
def t = fn.after(/\d+/)
"$n/Season $s/$n - S${s}E${e} - $t"
}

Format: Select all
/path/to/Tutorials/Art/
{
def n = folder.dir.name.removeAll(/\[.+?\]/).removeAll(/\(.+?\)/)
def s = folder.name.match(/\d+/)
def e = fn.match(/\d+/)
def t = fn.after(/\d+/)
"$n/Season $s/$n - S${s}E${e} - $t"
}

Re: Rename my training tutorial
It works, thank you. I am beginning to recognize that I would have to learn Groovy to make my own format for each tutorial. I just checked and it is similar to java language. So I guess this is not for me. Thank for your assistance though.
Re: Rename my training tutorial
The examples above will give you all the building blocks you need, file / folder names, before pattern, after pattern, match pattern, remove pattern, etc. You do not need to learn or know about Java / Groovy to use and modify the examples. A bit of regex pattern basics will be very helpful though.
Re: Rename my training tutorial
Can i ask for a format that just adds Season and Episodes increment before the title.
For Example: vid 01, vid 04 => S01E01-vid 01, S01E02-vid 04. I know for Season Number will be based on Season Number name folder but what about the episode number, can it be incremental?
For Example: vid 01, vid 04 => S01E01-vid 01, S01E02-vid 04. I know for Season Number will be based on Season Number name folder but what about the episode number, can it be incremental?
Re: Rename my training tutorial
{i} will give you the incremental number. {fn} will give you the current file name.
See Rename photos for example.
Format: Select all
S01E{i.pad(2)}-{fn}