mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 05:48:01 -05:00
* more aggressive white space normalization (include :?._ as well now)
This commit is contained in:
parent
0ec089538c
commit
f1c2b9fe91
@ -50,7 +50,7 @@ String.metaClass.replaceAll = { String pattern -> replaceAll(pattern, "") }
|
||||
*
|
||||
* e.g. "Doctor Who" -> "Doctor_Who"
|
||||
*/
|
||||
String.metaClass.space = { replacement -> replaceAll(/\s+/, replacement) }
|
||||
String.metaClass.space = { replacement -> replaceAll(/[:?._\s]+/, replacement) }
|
||||
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ episode.example[2]: {n} [{airdate}] {t}
|
||||
episode.example[3]: {n.space('.').lower()}.{s}{e.pad(2)}
|
||||
|
||||
# simple name/year
|
||||
movie.example[0]: {n} ({y}){" CD$pi"}{".$lang"}
|
||||
movie.example[0]: {n} ({y}){" CD$pi"}
|
||||
# boxee name
|
||||
movie.example[1]: {n.space('.')}.({y}){".part$pi"}
|
||||
# media info name
|
||||
|
Loading…
Reference in New Issue
Block a user