1
0
Fork 0
filebot-presets/test/spanish.groovy

3 lines
472 B
Groovy
Executable File

language: {info.OriginalLanguage}, lat_country: {["MX", "AR", "CO", "BR", "CL", "PE", "CU", "VE", "UY"].intersect(info.ProductionCountries).size()>0}, spoken: {info.SpokenLanguages}, countries: {info.ProductionCountries},
spanish_aff: {{ try { info.Network =~ /(?i)\bFLIXOL.\b|\b.?TVE\b/ } catch (e) { false } }()
|| ({ try { info.ProductionCompanies.any{it =~ /.?TVE|ESDIP|Canal Sur|Canal\+|Telecinco/}}catch(e){false}}() && (llengu.size()==1?llengu[0]=="spa":true))}