Newlines are included in directories and filenames during rename
What tinyMediaManager version are you using?
Version 5.04 74f5d10
What is the actual behavior?
If the JTME code contains newlines for readability, they are included in the generated filenames.
What is the expected behavior?
CR and LF should be stripped form the filename. Ideally, formatting spaces should also be removed
Steps to reproduce:
- Create a filename pattern which contains newlines (create them in an editor, for instance, and paste the formatted code into the pattern field.
${if movie.originalTitle=movie.title}
${if sortTitle}
${sortTitle}
${else}
${titleSortable}
${end}
${else}
${movie.originalTitle} - ${movie.title}
${end}
(${year})
- Rename a file using that pattern Note that the proposed output filename on the renamer panel looks correct with no CR/LF indicated. But also note that (at least on linux), the actual filenames contain CR/LF in the names.
Additional
- No log output generated
- Linux: Unraid
- Docker: https://hub.docker.com/r/tinymediamanager/tinymediamanager/