1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-17 14:55:09 -05:00

Improved built-in File format examples

This commit is contained in:
Reinhard Pointner 2017-01-08 00:55:10 +08:00
parent 8606ef44ca
commit 512051bf27

View File

@ -49,12 +49,14 @@ music.example[4]: {n}/{album+'/'}{pi.pad(2)+'. '} {t}
music.example[5]: {home}/Media/{plex} music.example[5]: {home}/Media/{plex}
# simple filename without extension # simple filename without extension
file.example[0]: {i.pad(3)} - {fn} file.example[0]: {i.pad(3)} - {n}
# simple filename regex-replace
file.example[1]: {n.replaceAll(/\\d+/, '')}
# simple filename regex-replace
file.example[2]: {n.replaceAll(/\\p{Punct}+/, ' ')}
# simple filter # 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) # restore original filename via embedded title metadata (if possible)
file.example[4]: {any{mediaTitle}{n}} file.example[5]: {any{mediaTitle}{n}}