conversion in rename slow
Posted: 27 May 2023, 20:16
Hi,
is it normal that the conversion from the identified movie to the correctly formatted filename is taking +/- a second per entry?
Filebot identified that the movie is
now it needs to reformat that to
every file found takes a second to rename.
In this slowness I'm not referring to the actual file renaming or copying. Just the string conversion done by my custom rename script
is it normal that the conversion from the identified movie to the correctly formatted filename is taking +/- a second per entry?
Filebot identified that the movie is
Code: Select all
A Bright Summer Day (1991)
Code: Select all
/Volumes/video/1080p/B/A Brighter Summer Day (1991) {imdb-tt0101985}/A Brighter Summer Day (1991) {imdb-tt0101985} - EN - [Audio - 2.0 AAC ][Video - BLURAY 1080P X264 8 BIT[NOSUB]]- [YTS.MX]
Code: Select all
/Volumes/video/
{
any
{ if ( group =~ /(?i)mercator|xyze/) 'Movies nl' }
{ if ( original =~ (/(?i)NLKIDS/) ) 'Movies kids' }
{ if ( certification =~ /TV-Y|TV-G|TV-Y7|U/) 'Movies kids' }
{ if ( info.network
=~ (/(?i)(ketnet|één|een|vtm|VTM GO|vt4|Canvas|streamz|Play4|play5|play6|play7|vtm2|vtm3|vtm4|vrt|2be|Ketnet|xcv)/ )) 'Movies nl' }
{ if ( info.certifications*.value*.findAll(/\d+/).flatten()*.toInteger().average().toInteger() < 8 ) 'Movies kids' }
{ if ( vf =~ /(?i)2160p/) '4K UHD' }
{ if ( vf =~ /(?i)1080p/) '1080p' }
{ if ( vf =~ /(?i)720p/) '720p' }
{ '4K optimized to 1080p' }
}
/
{n00 = n.sortName().charAt(0)toUpperCase(); n00.isDigit() ? '0-9' : n00}
/
{
var = any
{ if (imdbid) '{imdb-'+imdbid+'}'}
{ if (tmdbid) '{tmdb-'+tmdbid+'}'}
~ plex ** " $var" % any { ' - ' + audio.collect { [it['Language/String2'].upper(), ] }*.join(' ').join(' + ') + ' - ' }{ " - EN - " } % { "[Audio - " +[channels,ac].join(" ") + any {" [" + audio.collect { [it['Language/String2'].upper(), ] }*.join(' ').join(' + ') +']'
}{ " " } + ']' } % { "[Video - " + allOf{vs}{vf}{'AVC' in vc ? 'h264' : vc }{bitdepth + ' bit'}{hdr}.join(' ').upper() } % {' '+original.matchAll(/proper|repack|rerip/).join('.').lower() } % { any{ 'en' in text.language ? '[EN]' : 'nl' in text.language ? '[NL]' : '[]' }{'[NOSUB]' } } % {']'} % { any { if (original =~ /YTS.MX/ ) { "- [YTS.MX]"}} { if (group =~ /MX/ ) { "- [YTS.MX]"}} {'- [' + group + ']'} { fn.matchlast(/\[([^\[\]]+)\]+/) } } ^ {'.'+lang.ISO2} }