How to avoid 2 space together?

All about user-defined episode / movie / file name format expressions
Post Reply
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

How to avoid 2 space together?

Post by Biff »

When I obviously use the default format for series - http://i.imgur.com/t6vkwhS.png - I often have to spaces behinde the "-".
E.g. (2 spaces in front of "Homer"):
The Simpsons (s09e02) - Homer strikes again (2012-04-14, 2000).mp4
The Simpsons (s09e02) - Homer strikes again (2012-04-14, 2000).mp4

How could I correct that and get one space, only like you can see in the second example?
Newest portable, stable FileBot, Windows 10 Home, 64bit
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to avoid 2 space together?

Post by rednoah »

The two examples you gave are identical. And surely not generated by the default format.

@see http://www.filebot.net/forums/viewtopic ... 5&t=2#p783
:idea: Please read the FAQ and How to Request Help.
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

Re: How to avoid 2 space together?

Post by Biff »

Very sorry about that. So the forum seems to automatically delete two spaces side by side. And yes, sorry again, it is not generated by the default format, I just wanted give an example for the two spaces.

Is there a way to avoid those 2 spaces?

Many thanks.
Newest portable, stable FileBot, Windows 10 Home, 64bit
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to avoid 2 space together?

Post by rednoah »

It's your format. And you are adding the extra space somewhere in your format.

1. I assume you did not read the link I just gave you.
2. Unless you paste your format here I cannot tell you how to fix your format.
:idea: Please read the FAQ and How to Request Help.
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

Re: How to avoid 2 space together?

Post by Biff »

It's your format. And you are adding the extra space somewhere in your format.
Hmmm, I do not understand, after the last update of Filebot my formats were gone and there does not appear to be any of my formats inserted in Filebot like to see on the screenshot before, if I see it right.

1. Argh, oops, very sorry, I just had forgotten it, sorry. I do now of course.

2.
These formats I use:

Code: Select all

{n} ({s00e00}) - {t} ({d})

{n} ({s00e00.lower()}) - {t} ({airdate}, {y})

{n} ({s00e00.lower()}) - {t} ({airdate}, {', '+(seriesStartDate.year ?: y)})

{n} ({s00e00.lower()}) - {t} - {database.getEpisodeList(episode.series, net.sourceforge.filebot.web.SortOrder.Airdate,Locale.GERMAN).find{ it.season == s && it.episode == e}.title} ({airdate})

{n} ({s00e00.lower()}) - {database.getEpisodeList(episode.series, net.sourceforge.filebot.web.SortOrder.Airdate,Locale.ENGLISH).find{ it.season == s && it.episode == e}.title} - {t} ({airdate})

{n} ({s00e00.lower()}) - {database.getEpisodeList(episode.series, net.sourceforge.filebot.web.SortOrder.Airdate,Locale.ENGLISH).find{ it.season == s && it.episode == e}.title} - {t} ({airdate}{', '+(seriesStartDate.year ?: y)})

{n} ({s00e00.lower()}) - {database.getEpisodeList(episode.series, net.sourceforge.filebot.web.SortOrder.Airdate).find{ it.season == s && it.episode == e}.title} {t} ({airdate}{', '+(seriesStartDate.year ?: y)})

F:/Serien/{n}/Season {s}/{n} ({s00e00.lower()}) - {t} ({airdate}, {y})
Many thanks.
Newest portable, stable FileBot, Windows 10 Home, 64bit
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to avoid 2 space together?

Post by rednoah »

Your formats are not compatible with the new version. There's some info on other threads, as well as the release notes.

Have you read the post above? Now you should see the difference between these:

Code: Select all

({d})

Code: Select all

{'('+d+')'}
Basically none of your formats take into account that a variable could be undefined, and thus you get extra spaces, extra commas, etc actually you don't get extra anything, you're just missing something before or after.
:idea: Please read the FAQ and How to Request Help.
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

Re: How to avoid 2 space together?

Post by Biff »

Yes, I have read the post / all the posts above, thank you.

I am not quite sure to understand correctly. May be the best is I just will download a new Filebot and use the default formats.

Many thanks for your help.
Newest portable, stable FileBot, Windows 10 Home, 64bit
Post Reply