1) Yes I was looking for replaceAll(n, '')
but do you have something like:
to replace the year?
I try to adapt the code for movies, but the year is not always in the source name and I don't have other unique separator, so I imagined something like this:
Code: Select all
/{n} ({y})/{n} - {y}{' CD'+pi}{'.'+lang}{' ('+fn.replaceAll(n.space('.'), '').replaceAll(n, '').replaceAll(y, '').+')'}
(I also need to remove the first character if it's one of these character: ._ - but I will try later...)
2) I do not want that the combination of groups is added and recognized, but that the group [ettv] is excluded to keep only the other part.
The best I have found is this:
Code: Select all
/{n}/{episode.special ? 'Special' : 'S'+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t} {"("+fn.after(/[- ._](S\d+E\d+|\d{3,4}|\d+x\d+)[- ._]/).replaceAll("\\[ettv\\]", '')+")"}
But a personal exclusion list would be helpful to avoid growing code... (Ideally used before parsing)