for my pattern:
Code: Select all
{
folder.toString().replace('\\'+n+'\\', '\\'+ny+'\\').replace(folder.name, folder.name.before('\\[')).replace(': ',' ').replace('?','')
}
[
{vf}
{
if (vc == 'x265' || vc == 'HEVC') ' HEVC'
else
if (vc == 'AVC' || vc == 'x264') ' x264'
else ''
}
] [
{
audioLanguages.collect { i -> "$i" }.join('+').upper()
}
]/
{
ny.replace(':','').replace('?','')}
-
{s00e00}
{
if (self.absolute > 0 && (folder.toString().contains('\\Anime\\') || folder.toString().contains('\\00 - AnimeGG\\'))) ' - ' + absolute.pad(3) else ''
}
-
{
t.replace(':','').replace('?','')
}
[
{
if (source != '') source + ' ' else ''
}
{vf}
{
if (vc == 'x265' || vc == 'HEVC') ' HEVC'
else
if (vc == 'AVC' || vc == 'x264') ' x264'
else ''
}
] [
{
audioLanguages.collect { i -> "$i" }.join('+').upper()
}
]
{
}
Code: Select all
h:\Serie Tv\Come vendere droga online (in fretta) (2019)\Stagione 01 [1080p x264] [ITA+ENG]\Come vendere droga online (in fretta) (2019) - S01E06 - Se sei la persona più intelligente nella stanza, sei nella stanza sbagliata [NetflixHD 1080p x264] [ITA+ENG]
I made a temporary workaround using a if
Code: Select all
if (t.length() < 60)
t.replace(':','').replace('?','')
else
t.replace(':','').replace('?','').substring(0, 60) + '...'
Code: Select all
h:\Serie Tv\Come vendere droga online (in fretta) (2019)\Stagione 01 [1080p x264] [ITA+ENG]\Come vendere droga online (in fretta) (2019) - S01E06 - Se sei la persona più intelligente nella stanza, sei nella s... [NetflixHD 1080p x264] [ITA+ENG]
the question is...why filebot doesnt warn me of the too long path?
any suggestions to improve?
the 60 title length is a placeholder working for many files I think, that can vary based on show name obviosly.