Code: Select all
{n =~ /^(?i)[0-9a-s]/ ? 'D' : n =~ /^(?i)T[hea-z]/ ? 'E' : 'D'}:/Movies/{n} ({y}) ({source})/{n.colon('-')} ({y}){if (ext == 'srt') '.eng'}
1. This doesn't work correctly for movies that have a number immediately after the first letter, such as:
-T2 Trainspotting (2017) (This actually works, but only because of where I have T's located)
-X2 - X-Men United (2003)
2. Anyway to go further than the second letter when splitting the alphabet, it seems to stop at T[h-z].