31 lines
895 B
Groovy
Executable File
31 lines
895 B
Groovy
Executable File
def root = '/series/'
|
|
|
|
def rutaSeries = root+ 'Series/'
|
|
def rutaNSeries = root+'NSeries/'
|
|
def ruta_docu = root+'Series_docu/new/'
|
|
def ruta_animacion = root+'Series_animacion/new/'
|
|
def ruta_anime = root+'Series_anime/new/'
|
|
def ruta_antiguas = root+'Series_antiguas/new/'
|
|
def ruta_esp = root+'Series_esp/new/'
|
|
def ruta_cat = root+'Series_cat/new/'
|
|
def ruta_latina = root+'Series_lat/new/'
|
|
def ruta_teen = root+'Series_familiar/new/'
|
|
def ruta_infantil = root+'Series_infantil/new/'
|
|
def ruta_programastv = root+'programas_tv/new/'
|
|
|
|
def rutaKO = root+'error/'
|
|
def ruta = rutaNSeries
|
|
|
|
try {
|
|
def tvdb = series.getExternalId('TheTVDB')
|
|
if (tvdb==null) throw new Exception("[no_id]")
|
|
|
|
if (f.toString().contains('/Series/')) {
|
|
ruta = rutaSeries
|
|
}
|
|
|
|
def freshFile = ct >= '2022-03-18'
|
|
|
|
if (freshFile) {
|
|
ruta = ruta.replace('/Series/','/freshOldSeries/')
|
|
} |