Last active
October 17, 2021 15:06
-
-
Save abdiasriver/619dcecc9261562cf7a3c46e29d7ae56 to your computer and use it in GitHub Desktop.
Filebot cinedriveonline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================== sin ruta | |
{ny} - {vf} [{mbps}] {audioLanguages} | |
==================================================automatico a carpetas /1080p/robocop (2001)/ robocop (2001).mkv | |
Z:\Cinedriveonline\PELICULAS | |
/{ | |
(genres.contains('Animación') && hd == 'SD' ) | |
? '2.PELICULAS ANIMACION/Películas Animadas Varias (1080p, 720p y SD)/'+'SD/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'UHD' && (bytes/1073741824).round(1) > 30 && bitrate >= 26000000) | |
? '2.PELICULAS ANIMACION/Películas Animadas 4k Remux/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'UHD' && (bytes/1073741824).round(1) < 30) | |
? '2.PELICULAS ANIMACION/Películas Animadas 4K/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'HD' && vf == '720p' ) | |
? '2.PELICULAS ANIMACION/Películas Animadas Varias (1080p, 720p y SD)/'+'720p/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'HD' && vf == '1080p' ) | |
? '2.PELICULAS ANIMACION/Películas Animadas Varias (1080p, 720p y SD)/'+'1080p/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'HD' && vf == '1080p' && (bytes/1073741824).round(1) > 15 && bitrate >= 18000000) | |
? '2.PELICULAS ANIMACION/Películas Animadas 1080p BDREMUX/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'SD' ) | |
? '1.PELICULAS/Películas Varias (1080p, 720p y SD)/'+'SD/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'UHD' && (bytes/1073741824).round(1) > 30 && bitrate >= 26000000) | |
? '1.PELICULAS/Películas 4K REMUX/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'UHD' && (bytes/1073741824).round(1) < 30) | |
? '1.PELICULAS/Películas 4K/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '720p' ) | |
? '1.PELICULAS/Películas Varias (1080p, 720p y SD)/'+'720p/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '1080p' ) | |
? '1.PELICULAS/Películas Varias (1080p, 720p y SD)/'+'1080p/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '1080p' && (bytes/1073741824).round(1) > 15 && bitrate >= 18000000) | |
? '1.PELICULAS/Películas 1080p BDREMUX/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
'error/' + | |
Ny.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') | |
} | |
===================================con folders robocop (2001)/ robocop (2001).mkv | |
Z:\Cinedriveonline\PELICULAS | |
/{ | |
(genres.contains('Animación') ) | |
? '2 PELICULAS ANIMACION/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') / ' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'SD' ) | |
? '4 FALTA CATEGORIZAR/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') / ' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'UHD' && (bytes/1073741824).round(1) > 30 && bitrate >= 26000000) | |
? '4 FALTA CATEGORIZAR/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') / ' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'UHD' && (bytes/1073741824).round(1) < 30) | |
? '4 FALTA CATEGORIZAR/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') / ' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '720p' ) | |
? '4 FALTA CATEGORIZAR/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') / ' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '1080p' ) | |
? '4 FALTA CATEGORIZAR/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') / ' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '1080p' && (bytes/1073741824).round(1) > 15 && bitrate >= 18000000) | |
? '4 FALTA CATEGORIZAR/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') / ' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
'5 NO RENOMBRADO/' + | |
Ny.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') | |
} | |
===================================sin crear folders solo robocop (2001).mkv | |
Z:\Cinedriveonline\PELICULAS | |
/{ | |
(genres.contains('Animación') ) | |
? '2 ANIMACION/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'SD' ) | |
? '1.PELICULAS VA/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'UHD' && (bytes/1073741824).round(1) > 30 && bitrate >= 26000000) | |
? '1.PELICULAS VA/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'UHD' && (bytes/1073741824).round(1) < 30) | |
? '1.PELICULAS VA/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '720p' ) | |
? '1.PELICULAS VA/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '1080p' ) | |
? '1.PELICULAS VA/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '1080p' && (bytes/1073741824).round(1) > 15 && bitrate >= 18000000) | |
? '1.PELICULAS VA/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
'error/' + | |
Ny.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') | |
} | |
======================================NUEVO CON FOLDERS SIN resolver DUPLICADO | |
Z:\Cinedriveonline\PELICULAS | |
/{ | |
def norm = {it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + ' (' + y + ') / ' + it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + ' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}}; | |
genres.contains('Animación') ? '4 Falta acortar y agregar/PENDIENTE ANIMACION/' + norm(n) : hd ? '4 Falta acortar y agregar/4 PENDIENTE A-Z/' + norm(n) : '4 NO CATEGORIZADO/' + ny.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') | |
} | |
========================================================== El MEJOR CREA FOLDER y folder de DUPLICADOS y con languaje | |
{ | |
def mainPath = 'Z:/Cinedriveonline/PELICULAS/' | |
def fileInfo = " - $vf [$mbps] $Languages" | |
def norm = {it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡')}; | |
def allNorm(path, hard, dir, info){ path + hard + dir + '/' + dir + info }; | |
def outFull = genres.contains('Animación') ? ( allNorm(mainPath, '5 ANIMACION ACORTAR/', norm(ny), fileInfo) ) : ( hd ? allNorm(mainPath, '4 PELICULAS ACORTAR/', norm(ny), fileInfo) : '7 RENOMANUAL/' + norm(ny) ) | |
!(outFull as File).parentFile.exists() ? outFull : allNorm(mainPath, 'DUPLICADA/', norm(ny), fileInfo) | |
} | |
========================================================== El MEJOR CREA FOLDER y folder de DUPLICADOS y sin languaje | |
{ | |
def mainPath = 'Z:/Cinedriveonline/PELICULAS/4 Falta acortar y agregar/' | |
def altPath = 'Z:/Cinedriveonline/PELICULAS/' | |
def fileInfo = " - $vf [$mbps]" | |
def norm = {it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡')}; | |
def allNorm(path, hard, dir, info){ path + hard + dir + '/' + dir + info }; | |
def outFull = genres.contains('Animación') ? ( allNorm(mainPath, 'PENDIENTE ANIMACION/', norm(ny), fileInfo) ) : ( hd ? allNorm(mainPath, 'PENDIENTE A-Z/', norm(ny), fileInfo) : '7 ERROR renombrar manualmente/' + norm(ny) ) | |
!(outFull as File).parentFile.exists() ? outFull : allNorm(altPath, 'DUPLICADA/', norm(ny), fileInfo) | |
} | |
============ | |
{ | |
def mainPath = 'Z:/Cinedriveonline/PELICULAS/' | |
def fileInfo = " - $vf [$mbps] $Languages" | |
def norm = {it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡')}; | |
def allNorm(path, hard, dir, info){ path + hard + dir + '/' + dir + info }; | |
def outFull = genres.contains('Animación') ? ( allNorm(mainPath, '5 ANIMACION ACORTAR/', norm(ny), fileInfo) ) : ( hd ? allNorm(mainPath, '4 PELICULAS ACORTAR/', norm(ny), fileInfo) : '7 RENOMANUAL/' + norm(ny) ) | |
!(outFull as File).parentFile.exists() ? outFull : allNorm(mainPath, 'DUPLICADA/', norm(ny), fileInfo) | |
} | |
=======================================A a la Z | |
{ | |
def mainPath = 'Z:/Cinedriveonline/PELICULAS/' | |
def altPath = 'Z:/Cinedriveonline/PELICULAS/1 DE LA A-Z/' | |
def fileInfo = " - $vf [$mbps] $Languages" | |
def norm = {it.colon(' - ').replaceAll(/[?]/, '').replaceAll(/[!]/, '').replaceAll(/[¿]/, '')}; | |
def allNorm(path, hard, dir, info){ path + hard + '/' + dir + '/' + dir + info }; | |
def outFull = genres.contains('Animación') ? ( allNorm(mainPath, '3 ANIMACION', norm(ny), fileInfo) ) : ( hd ? allNorm(altPath, az, norm(ny), fileInfo) : mainPath + '4 RENOMANUAL/'+ norm(ny) + '/' + fn ) | |
!(outFull as File).parentFile.exists() ? outFull : allNorm(mainPath, '5 DUPLICADA', norm(ny), fileInfo) | |
} | |
===================================A a la az +languaje | |
{ | |
def mainPath = 'Z:/Cinedriveonline/PELICULAS/' | |
def fileInfo = " - $vf [$mbps] $Languages" | |
def norm = {it.colon(' - ').replaceAll(/[?]/, '').replaceAll(/[!]/, '').replaceAll(/[¿]/, '')}; | |
def allNorm(path, hard, dir, info){ path + hard + '/' + dir + '/' + dir + info }; | |
def outFull = genres.contains('Animación') ? ( allNorm(mainPath, '5 ANIMACION ACORTAR', norm(ny), fileInfo) ) : ( hd ? allNorm(mainPath, (n =~ /^(?i)[a-z]/ ? n[0] : '#'), norm(ny), fileInfo) : mainPath + '7 RENOMANUAL/'+ norm(ny) + '/' + fn ) | |
!(outFull as File).parentFile.exists() ? outFull : allNorm(mainPath, 'DUPLICADA', norm(ny), fileInfo) | |
} | |
======================================aRREGLADO NOMBRES A-Z Y A NUMERO funcionando cinedriveonline | |
{ | |
def altPath = 'Z:/LIBDRIVE/' | |
def mainPath = 'Z:/LIBDRIVE/1 DE LA A-Z y NUMEROS/' | |
def fileInfo = " - $vf [$mbps]" | |
def norm = {it.colon(' - ').replaceAll(/[?]/, '').replaceAll(/[!]/, '').replaceAll(/[¿]/, '')}; | |
def allNorm(path, hard, dir, info){ path + hard + '/' + dir + '/' + dir + info }; | |
def outFull = genres.contains('Animación') ? ( allNorm(altPath, '3 ANIMACION', norm(ny), fileInfo) ) : ( hd ? allNorm(mainPath, (n =~ /^(?i)[a-z]/ ? n[0] : '1 CON NUMERACION'), norm(ny), fileInfo) : altPath + '4 RENOMANUAL/'+ norm(ny) + '/' + fn ) | |
!(outFull as File).parentFile.exists() ? outFull : allNorm(altPath, '5 DUPLICADA', norm(ny), fileInfo) | |
} | |
========================== | |
======================================aRREGLADO NOMBRES A-Z Y A NUMERO funcionando cinedriveonline + languaje | |
{ | |
def altPath = 'Z:/Cinedriveonline/@cinedriveonline/' | |
def mainPath = 'Z:/LIBDRIVE/1 DE LA A-Z y NUMEROS/' | |
def fileInfo = " - $vf [$mbps] $Languages" | |
def norm = {it.colon(' - ').replaceAll(/[?]/, '').replaceAll(/[!]/, '').replaceAll(/[¿]/, '')}; | |
def allNorm(path, hard, dir, info){ path + hard + '/' + dir + '/' + dir + info }; | |
def outFull = genres.contains('Animación') ? ( allNorm(altPath, '3 ANIMACION', norm(ny), fileInfo) ) : ( hd ? allNorm(mainPath, (n =~ /^(?i)[a-z]/ ? n[0] : '1 CON NUMERACION'), norm(ny), fileInfo) : altPath + '4 RENOMANUAL/'+ norm(ny) + '/' + fn ) | |
!(outFull as File).parentFile.exists() ? outFull : allNorm(altPath, '5 DUPLICADA', norm(ny), fileInfo) | |
} | |
==================================================== | |
sudo snap install filebot | |
===================por generos en cualquier lugar | |
{ | |
any | |
{ | |
def order = ['Animation': 1, 'Musical': 2, 'Documentary': 3, 'Family': 4, 'History': 5, 'Science Fiction': 6, 'Horror': 7, 'Fantasy': 8, 'War': 9, 'Western': 10, 'Action': 11, 'Comedy': 12, 'Crime': 13, 'Thriller': 14, 'Adventure': 15, 'Mystery': 16, 'Romance': 17, 'Drama': 18].withDefault{ 100 } | |
def map = ['Science Fiction': 'Sci-Fi'] | |
def genres = genres.toSorted{ order[it] }*.replace(map) | |
genres.first() / genres.take(3).join('-') | |
} | |
{ | |
'No Genre' | |
} | |
} | |
/{plex.name} {y}- @cinedriveonline | |
======================================= | |
Z:\LIBDRIVE\@cinedriveonline | |
/{ | |
(genres.contains('Animación') && hd == 'SD' ) | |
? '2.PELICULAS ANIMACION/Películas Animadas Varias (1080p, 720p y SD)/'+'SD/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'UHD' && (bytes/1073741824).round(1) > 30 && bitrate >= 26000000) | |
? '2.PELICULAS ANIMACION/Películas Animadas 4k Remux/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'UHD' && (bytes/1073741824).round(1) < 30) | |
? '2.PELICULAS ANIMACION/Películas Animadas 4K/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'HD' && vf == '720p' ) | |
? '2.PELICULAS ANIMACION/Películas Animadas Varias (1080p, 720p y SD)/'+'720p/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'HD' && vf == '1080p' ) | |
? '2.PELICULAS ANIMACION/Películas Animadas Varias (1080p, 720p y SD)/'+'1080p/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(genres.contains('Animación') && hd == 'HD' && vf == '1080p' && (bytes/1073741824).round(1) > 15 && bitrate >= 18000000) | |
? '2.PELICULAS ANIMACION/Películas Animadas 1080p BDREMUX/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'SD' ) | |
? '1.PELICULAS/Películas Varias (1080p, 720p y SD)/'+'SD/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'UHD' && (bytes/1073741824).round(1) > 30 && bitrate >= 26000000) | |
? '1.PELICULAS/Películas 4K REMUX/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'UHD' && (bytes/1073741824).round(1) < 30) | |
? '1.PELICULAS/Películas 4K/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '720p' ) | |
? '1.PELICULAS/Películas Varias (1080p, 720p y SD)/'+'720p/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '1080p' ) | |
? '1.PELICULAS/Películas Varias (1080p, 720p y SD)/'+'1080p/'+ | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
(hd == 'HD' && vf == '1080p' && (bytes/1073741824).round(1) > 15 && bitrate >= 18000000) | |
? '1.PELICULAS/Películas 1080p BDREMUX/' + | |
n.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + | |
' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}: | |
'error/' + | |
Ny.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') | |
} | |
=================== A NUMEROS Y POR LETRAS FUNCIONANDO | |
{ | |
def altPath = 'Z:/LIBDRIVE/@cinedriveonline/' | |
def dupath = 'Z:/LIBDRIVE/' | |
def mainPath = 'Z:/LIBDRIVE/@cinedriveonline/1 DE LA A-Z y NUMEROS/' | |
def fileInfo = " - $vf [$mbps] $Languages" | |
def norm = {it.colon(' - ').replaceAll(/[?]/, '').replaceAll(/[!]/, '').replaceAll(/[¿]/, '').replaceAll(/[¡]/, '')}; | |
def allNorm(path, hard, dir, info){ path + hard + '/' + dir + '/' + dir + info }; | |
def outFull = genres.contains('Animación') ? ( allNorm(altPath, '3 ANIMACION', norm(ny), fileInfo) ) : ( hd ? allNorm(mainPath, (n =~ /^(?i)[a-z]/ ? n[0] : '1 CON NUMERACION'), norm(ny), fileInfo) : altPath + '4 RENOMANUAL/'+ norm(ny) + '/' + fn ) | |
!(outFull as File).parentFile.exists() ? outFull : allNorm(dupath, 'DUPLICADA', norm(ny), fileInfo) | |
} | |
=====================================================ORIGINAL POR GENEROS | |
Z:/LIBDRIVE/@cinedriveonline/ | |
{ | |
any | |
{ | |
def order = ['Animation': 1, 'Musical': 2, 'Documentary': 3, 'Family': 4, 'History': 5, 'Science Fiction': 6, 'Horror': 7, 'Fantasy': 8, 'War': 9, 'Western': 10, 'Action': 11, 'Comedy': 12, 'Crime': 13, 'Thriller': 14, 'Adventure': 15, 'Mystery': 16, 'Romance': 17, 'Drama': 18].withDefault{ 100 } | |
def map = ['Ciencia ficción': 'Sci-Fi'] | |
def genres = genres.toSorted{ order[it] }*.replace(map) | |
genres.first() / genres.take(3).join('-') | |
} | |
{ | |
'No Genre' | |
} | |
} | |
/{plex.name} [{vf}] [{mbps}] | |
===================================================MODIFICADO POR GENEROS 1 | |
Z:/Multimedia UNIQedumx/@cinedriveonline/ | |
{ | |
any | |
{ | |
def order = ['Animation': 1, 'Musical': 2, 'Documentary': 3, 'Family': 4, 'History': 5, 'Science Fiction': 6, 'Horror': 7, 'Fantasy': 8, 'War': 9, 'Western': 10, 'Action': 11, 'Comedy': 12, 'Crime': 13, 'Thriller': 14, 'Adventure': 15, 'Mystery': 16, 'Romance': 17, 'Drama': 18].withDefault{ 100 } | |
def map = ['Science Fiction': 'Sci-Fi','Action': 'Acción','Animation': 'Animación','Ciencia ficción': 'Sci-Fi','Comedy': 'Comedia','Crime': 'Crimen','History': 'Historia'] | |
def genres = genres.toSorted{ order[it] }*.replace(map) | |
genres.first() | |
} | |
{ | |
'No Genre' | |
} | |
} | |
/{plex.name} - [{vf}] [{mbps}] - @cinedriveonline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment