People hi!
I have an issue with some series. My renaming scheme for episodes is - series name (year) S00E00 - episode name.
Sometimes episode names has very long length, and with windows limit of 256 symbols, i can't rename some files.
How to limit the length of episode title?
How to limit the lenght of episode title?
Re: How to limit the lenght of episode title?


Format: Select all
{ t.take(5) }


Re: How to limit the lenght of episode title?
For example https://www.thetvdb.com/series/jamies-15-minute-meals
My string is:
I think Russian episode names are to long.
And yes, i had error message
My string is:
Groovy: Select all
{drive} Done/
{ country =~ "RU" ? 'Russian_TVshows' : { country =~ "SU" ? 'USSR_TVshows' : 'TVshows' } }/
{ny} {"{tvdb-$tvdbid}"}/
{episode.special ? 'Specials' : 'Season '+s.pad(2)}/
{ny} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t+'.'} -
[{vf}{'.'HDR+'.'}{'.'source}{' - '+group}]{" - CD$pi"}
And yes, i had error message
Re: How to limit the lenght of episode title?
This is working as expected, thanksrednoah wrote: ↑15 Aug 2024, 11:57You can take the first n characters from any given String value like so:
Format: Select all
{ t.take(5) }
Re: How to limit the lenght of episode title?

Format: Select all
{ s00e00 }

Format: Select all
{ country =~ "RU" ? 'Russian_TVshows' : country =~ "SU" ? 'USSR_TVshows' : 'TVshows' }/

Format: Select all
{ vf }{ '.' + hdr }{ '.' + source }{ ' - ' + group }

Re: How to limit the lenght of episode title?
Thanks for your advises, it will be very useful