Format: Select all
{def certifications = net.filebot.WebServices.TheMovieDB.getMovieInfo(movie, Locale.US, true).certifications; def cleanNum = certifications.findResults{key, value -> value.replaceAll('\\D')}.findAll{it}*.toInteger().findAll{it < 22}; def int avg = (cleanNum.sum() / cleanNum.size()).toDouble().round(); (allOf{ny}{director}{omdb.genres}{any{'c'+avg}{certifications.US}{'NR'}}{'r'+(int)(omdb.rating * 10)}{vf}{vc}{ac}{imdbid}).join(' ')}