- if the movie exists in the destination folder then delete the movie from the source
or
- If the movie exists in the destination, move the source movie to another folder
I don't want to overwrite destiny
This is the code...
Code: Select all
{
def norm = {it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + ' (' + y + ') / ' + it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + ' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}};
genres.contains('Animación') ? '2.PELICULAS ANIMACION/' + norm(n) : hd ? '1.PELICULAS VARIAS/' + norm(n) : 'error/' + ny.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡')
}