Hi!
I want to convert:
text:text -> text.text
and
text: text -> text - text
For example:
11:14 (2003) -> 11.14 (2003)
while
District 13: Ultimatum (2009) -> District 13 - Ultimatum (2009)
This is my format atm: {ny.colon(' - ')}.{vf}{'.'+source}.{ac}{'.'s3d}.{vc}/{ny.colon(' - ')}.{vf}{'.'+source}.{ac}{'.'s3d}.{vc}{'[CD'+pi+']'}
I've tried to make it with {n.replaceAll(':^ ','.')} or something like it but I just can't figure it out.
I have also been thinking if it is possible to use the original title if it is a Swedish movie?
Thanks for the great program and expect an donation in the near future.
Replace colon characters differently depending on the context
Re: [HELP] text:text -> text.text and text: text -> text - text
1.
You can pass in different replacements for ratio-style colon and grammar-style colon:
You may need to install the latest revision for that one though.
2.
Depends on how you define what a "A Swedish Movie" is.
e.g. Swedish movies are movies that are partially produced in Sweden:
@see viewtopic.php?f=5&t=4191
You can pass in different replacements for ratio-style colon and grammar-style colon:
Code: Select all
'Episode: 4:00am'.colon('.', ' - ')
2.
Depends on how you define what a "A Swedish Movie" is.

e.g. Swedish movies are movies that are partially produced in Sweden:
Code: Select all
{'SE' in info.productionCountries ? primaryTitle : n}
Re: [HELP] text:text -> text.text and text: text -> text - text
1.rednoah wrote:1.
You can pass in different replacements for ratio-style colon and grammar-style colon:You may need to install the latest revision for that one though.Code: Select all
'Episode: 4:00am'.colon('.', ' - ')
2.
Depends on how you define what a "A Swedish Movie" is.
e.g. Swedish movies are movies that are partially produced in Sweden:@see viewtopic.php?f=5&t=4191Code: Select all
{'SE' in info.productionCountries ? primaryTitle : n}
Ok, that should work, does the ratio-style colon require numbers on both sides?
I am using the mac version atm, can you install the new revision from brew or app store?
2.
So, until I can install the new rev. I have come up the following:
Code: Select all
{'SE' in info.productionCountries ? primaryTitle : ny.upperInitial().colon(' - ')}.{vf}{'.'+source}.{ac}{'.'s3d}.{vc}/{'SE' in info.productionCountries ? primaryTitle : ny.upperInitial().colon(' - ')}.{vf}{'.'+source}.{ac}{'.'s3d}.{vc}{'[CD'+pi+']'}
I guess I can solve the year with
Code: Select all
{' ('+y+')'}
A new thing I thought of is to group movie collections like all Bourne movies together like /Bourne/Bourne1/Bourne1.mkv and so on.
I had a look at some examples which lead me to something like:
Code: Select all
{any{"$collection/"}{"[]"}}{'SE' in info.productionCountries ? primaryTitle : ny.upperInitial().colon(' - ')}.{vf}{'.'+source}.{ac}{'.'s3d}.{vc}/{'SE' in info.productionCountries ? primaryTitle : ny.upperInitial().colon(' - ')}.{vf}{'.'+source}.{ac}{'.'s3d}.{vc}{'[CD'+pi+']'}
Code: Select all
'SE' in info.productionCountries ? primaryTitle : n
in to
Code: Select all
{any{"$collection/"}{"[$y]"}}
Thanks again!
Re: Replace colon characters differently depending on the context
1.
No, the latest revision is available as build, but not via any of the distribution channels (since there's a new revision every other day). You can also do a regex-replace (e.g. /\b[:]\b/) which will work with any release.
e.g.
2.
Your format only applies upperInitial() in one of the two cases.
Note the difference:
3.
e.g. use Swedish collection name:
Note that TheMovieDB will probably default to English anyway because Swedish data probably hasn't been entered for a lot of movies or collections.
@see viewtopic.php?t=3761
No, the latest revision is available as build, but not via any of the distribution channels (since there's a new revision every other day). You can also do a regex-replace (e.g. /\b[:]\b/) which will work with any release.
e.g.
Code: Select all
{'4:00am: Test'.replaceAll(/\b[:]\b/, '.')}
2.
Your format only applies upperInitial() in one of the two cases.
Note the difference:
Code: Select all
true ? 'A' : 'B'.lower()
(true ? 'A' : 'B').lower()
3.
e.g. use Swedish collection name:
Code: Select all
{localize.SWE.collection}
@see viewtopic.php?t=3761