[DOCS] Target Unix Filesystem

How-to guides, frequently asked questions, not-so-obvious features, etc
Post Reply
User avatar
rednoah
The Source
Posts: 23469
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[DOCS] Target Unix Filesystem

Post by rednoah »

How do I disable Windows File Path Validation?

Screenshot
:arrow: The {plex.id} format will guarantee Windows-compatible file paths so the Invalid Characters dialog above will never come up if your custom format generates valid file paths in the first place:

Format: Select all

{ plex.id }
:arrow: The String.removeIllegalCharacters() method can be used strip illegal characters at format time:

Format: Select all

{ n.removeIllegalCharacters() } { s00e00 } { t.removeIllegalCharacters() }



:idea: By default, filebot forces Windows-compatible file paths on all platforms, removing characters such as : colon or ? question mark automatically:

Console Output: Select all

$ filebot -rename *.mp4 --db TheTVDB -non-strict --format "{n} - {sxe} - {t}"
...
Stripping invalid characters from new path: 24 - 7x01 - Day 7: 8:00 A.M. - 9:00 A.M.
[MOVE] from [24.S07E01.mp4] to [24 - 7x01 - Day 7 800 A.M. - 900 A.M..mp4]



:arrow: Set -unixfs to pass through the path generated by your custom format verbatim:

Console Output: Select all

$ filebot -rename *.mp4 --db TheTVDB -non-strict --format "{n} - {sxe} - {t}" -unixfs
...
[MOVE] from [24.S07E01.mp4] to [24 - 7x01 - Day 7: 8:00 A.M. - 9:00 A.M..mp4]



:arrow: You can permanently disable Windows file path validation on Unix platforms for all filebot commands by writing a configuration file:

Shell: Select all

filebot -script fn:properties --def unixfs=true
:idea: Please read the FAQ and How to Request Help.
Post Reply