As we know, the forward slash is used quite often on TVDB episode titles. Many people choose to substitute another character, and I want to do that too, but replace it with a similar looking unicode character according to the filter described here:
viewtopic.php?f=5&t=12295
Code: Select all
'<>:"/\\|?*'.replace(
'<' : '﹤',
'>' : '﹥',
':' : 'ː',
'"' : '“',
'/' : '⁄',
'|' : '⼁',
'?' : '﹖',
'*' : '﹡',
'\\': '∖'
)
viewtopic.php?p=13418#p13418
Where the good advice is given by rednoah about forward slashes being interpreted as path separators.
The problem is my "replace" of '/' : '⁄' doesn't seem to be working at all in a real world example. I'm wondering if I'm running up against a hard-coded safety net in filebot or java or somewhere, I can't seem to find where.
It works for me if I use the test code above, but when I run this against an actual TVDB entry such as:
https://thetvdb.com/series/the-diary-of ... es/7710232
The episode name is a good one for testing purposes

Code: Select all
$ cat ~/bin/unicode.groovy
{sxe} {t.replace(
'<' : '﹤',
'>' : '﹥',
':' : 'ː',
'"' : '“',
'/' : '⁄',
'|' : '⼁',
'?' : '?',
'*' : '﹡',
'\\': '∖'
)}
Code: Select all
$ filebot -version
FileBot 4.9.2 (r8046) / OpenJDK Runtime Environment 15 / Linux 4.15.0-88-generic (amd64)
$ filebot --action test -rename -non-strict -unixfs -r --file-filter f.video "/home/user/samba/mklinks/diary" --db TheTVDB --format /home/user/bin/unicode.groovy --output "/home/user/output" --q "The Diary of our Days"
* Consider using --mode interactive to enable interactive mode
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [The Diary of our Days]
Fetching episode data for [22/7]
[TEST] from [/home/user/samba/mklinks/diary/S00E01.mkv] to [/home/user/output/0x01 22 7ː 8+3=?.mkv]
Processed 1 file

Any suggestions how to further look what's happening to the "/" ?
On the off chance this is specific to my install, but I'd be surprised if that was the case:
Code: Select all
FileBot 4.9.2 (r8046)
JNA Native: 6.1.0
MediaInfo: 20.08
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0 mkvpropedit/19.0.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-12-01 (r724)
Groovy: 3.0.6
JRE: OpenJDK Runtime Environment 15
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 12 Core / 32 GB Max Memory / 44 MB Used Memory
OS: Linux (amd64)
HW: Linux 4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: Intel(R) Xeon(R) CPU E5-1650 v3
DATA: /home/user/.filebot
Package: DEB
License: FileBot License X (Valid-Until: 2069-10-22)
Done ヾ(@⌒ー⌒@)ノ