Search found 5 matches

by minime
06 Dec 2019, 18:30
Forum: Windows
Topic: Sometimes a trailing space for no apparent reason
Replies: 13
Views: 5272

Re: Sometimes a trailing space for no apparent reason

This is my code for movies

Code: Select all

{n.space(' ')} [{y}]{' '+source}{if (ext =~ /srt/) '.eng'}
do you see any issues if I change to this?

Code: Select all

{n.space(' ')} [{y}]{' '+source.trim()}{if (ext =~ /srt/) '.eng'}
Sorry but I can copy and paste but really don't understand the various extra commands like .trim
by minime
06 Dec 2019, 18:17
Forum: Windows
Topic: Sometimes a trailing space for no apparent reason
Replies: 13
Views: 5272

Re: Sometimes a trailing space for no apparent reason

I just that bit of code and seems to work fine!!! Thank you very much!! Love FileBot!!

Code: Select all

{n} {s00e00} {t.trim()}{if (ext =~ /srt/) '.eng'}
by minime
06 Dec 2019, 18:14
Forum: Windows
Topic: Sometimes a trailing space for no apparent reason
Replies: 13
Views: 5272

Re: Sometimes a trailing space for no apparent reason

It renames the corresponding .mp4 file correctly though with no trailing space? Can I add something to my code that will delete trailing spaces and leave it like that? I don't want to keep changing my format if possible? Will this work?

Code: Select all

{n} {s00e00} {t.trim()}{if (ext =~ /srt/) '.eng'}
by minime
06 Dec 2019, 17:57
Forum: Windows
Topic: Sometimes a trailing space for no apparent reason
Replies: 13
Views: 5272

Re: Sometimes a trailing space for no apparent reason

Thank you for the quick reply! Sorry, I guess I typed my code wrong. I am using your 2nd one - without space. {n} {s00e00} {t}{if (ext =~ /srt/) '.eng'} with those 3 filenames 2 have trailing space and 1 doesn't. Maybe create 3 quick txt files and see what happens if you try renaming them V Wars S01...
by minime
06 Dec 2019, 13:02
Forum: Windows
Topic: Sometimes a trailing space for no apparent reason
Replies: 13
Views: 5272

Sometimes a trailing space for no apparent reason

I am using this format to add ".eng" before .srt extension for subtitle files {n} {s00e00} {t} {if (ext =~ /srt/) '.eng'} so "V Wars S01E02 Blood Brothers.srt" should change to "V Wars S01E02 Blood Brothers.eng.srt" For some reason that filename adds a trailing space be...