Improved built-in File format examples
This commit is contained in:
parent
8606ef44ca
commit
512051bf27
|
@ -49,12 +49,14 @@ music.example[4]: {n}/{album+'/'}{pi.pad(2)+'. '} {t}
|
|||
music.example[5]: {home}/Media/{plex}
|
||||
|
||||
# simple filename without extension
|
||||
file.example[0]: {i.pad(3)} - {fn}
|
||||
# simple filename regex-replace
|
||||
file.example[1]: {n.replaceAll(/\\d+/, '')}
|
||||
# simple filename regex-replace
|
||||
file.example[2]: {n.replaceAll(/\\p{Punct}+/, ' ')}
|
||||
file.example[0]: {i.pad(3)} - {n}
|
||||
# simple filter
|
||||
file.example[3]: {n.after('-')}
|
||||
file.example[1]: {n.after('-')}
|
||||
# remove special characters
|
||||
file.example[2]: {n.ascii().normalizePunctuation().space('_')}
|
||||
# remove release info patterns
|
||||
file.example[3]: {n.stripReleaseInfo().space(' ')}
|
||||
# generate name from iTunes ID3 tags
|
||||
file.example[4]: {media.Album} - {media.PartID} - {media.Title}
|
||||
# restore original filename via embedded title metadata (if possible)
|
||||
file.example[4]: {any{mediaTitle}{n}}
|
||||
file.example[5]: {any{mediaTitle}{n}}
|
||||
|
|
Loading…
Reference in New Issue