
I was looking for answer, but i cant find anything.
First introduction:
I have files like this (i have "czesc" 1 z 2, but it means "part 1 of 2") and for sure it works with bamboo blade and futari ecchi:
Code: Select all
Gosick 1 part 1 of 3
Gosick 1 part 2 of 3
Gosick 1 part 3 of 3
Gosick 2
Gosick 3
Gosick 4 part 1 z 2
Gosick 4 part 2 z 2
Code: Select all
Gosick 1 part 1 of 3 - Gosick 1
Gosick 1 part 2 of 3 - Gosick Special 1
Gosick 1 part 3 of 3 - not matches
Gosick 2 - Gosick 2
Gosick 3 - Gosick 3
Gosick 4 part 1 z 2 - Gosick 4
Gosick 4 part 2 z 2 - Gosick Special 2
Code: Select all
Futari Echci 01 - Part1 = Futari Echci 1
Futari Echci 01 - Part2 = Futari Echci 2
Futari Echci 02 - Part1 = not matched
Futari Echci 02 - Part2 = not matched
Futari Echci 03 - Part1 = Futari Echci 3
Futari Echci 03 - Part3 = not matched
Futari Echci 04 - Part1 = Futari Echci 4
Futari Echci 04 - Part2 = not matched
What am I doing wrong? Can FileBot match parts of anime as one episode, and add "Part X" in the end of name?
I have scheme from forum and it has word "Part", so i think that i cant set proper name for matching.
And side question: Can i match files by hand - like futari ecchi drag "Futari Ecchi 2" from "Futari Echci 01 - Part2" to "Futari Echci 02 - Part1"?
i have powershell script that convets one number digit to two number digit (1 -> 01, 2 -> 02, 15 -> 15):
Code: Select all
#start from folder and goes one level deep
# a
# -> b
# -> c
# -> d
# -> e
# -> f
# -> g
# convert files in b,c,d,g folder and starts form a (files in a are not converted)
foreach ($dic in ls -Directory){
cd $dic
foreach ($file in dir)
{
# this is for "część 1 z 2", means for "part 1 of 2")
# Gostick 1 - część 1 z 2 -> Gostick 01 Part1
if ([regex]::IsMatch($file.Name, " \d{1} - "))
{
# add 0 before single digit umber
$newName = $file.Name.Insert([regex]::Match($file.Name, " \d{1} - ").Index+1,"0")
# convert "- część X z Y" -> "PartX"
# in eng: "- part X of Y" -> "PartX"
$match = [regex]::Match($file.Name, "- część \d{1} z \d{1}")
$newName = $newName.Replace($match, "Part"+$match.Value[8])
Rename-Item -Path $file -NewName $newName
}
# this is for "Name of anime ep_number"
# number bust be in the end of line (before ext) and splited by space - if u have only this eps, it should work without changing enything
# Gostick 1.mp4 -> Gostic 01.mp4
# Gostick 12.mp4 -> untouched
elseif ([regex]::IsMatch($file.Name, " \d{1}\" + $file.Extension + "$"))
{
$file.Name.Insert([regex]::Match($file.Name, " \d{1}\" + $file.Extension + "$").Index+1,"0")
# add 0 before single digit umber
Rename-Item -Path $file -NewName $file.Name.Insert([regex]::Match($file.Name, " \d{1}\" + $file.Extension + "$").Index+1,"0")
}
}
cd ..
}