Using the + sign in file names?
#1
IE:
Filename: Alien (1979)_DTSHD-MA.UHD Blu-ray.HDR10+.mkv

i am trying to use:
"String.Contains(ListItem.Filenameandpath,HDR10+.)"

to display the HDR10+ media flag, but i don't think i can use the + sign, is there a way to escape it?
Reply
#2
nope, no way.  Better use "HDR10plus" in the filename.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#3
(2020-03-13, 18:32)sualfred Wrote: nope, no way.  Better use "HDR10plus" in the filename.

yea i tried telling that to the TinyMediaManager guys, they said fix your skin!

not even possible using regex? but i have no clue how
Reply
#4
Say the TinyMediaManager guys that Kodi is interpreting "+" as "and" and this is why it doesn't work.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#5
Can you use this instead:
Code:
String.Contains(ListItem.Filenameandpath,.HDR10)

Or will that give a false positive with something else?
Reply
#6
(2020-03-14, 03:23)jurialmunkey Wrote: Can you use this instead:
Code:
String.Contains(ListItem.Filenameandpath,.HDR10)

Or will that give a false positive with something else?


Yes HDR10 and HDR10+ are 2 different flags
Reply
#7
(2020-03-14, 03:43)spl147 Wrote:
(2020-03-14, 03:23)jurialmunkey Wrote: Can you use this instead:
Code:
String.Contains(ListItem.Filenameandpath,.HDR10)

Or will that give a false positive with something else?


Yes HDR10 and HDR10+ are 2 different flags

In that case, what about this for HDR10+
Code:
String.Contains(ListItem.Filenameandpath,.HDR10) + !String.Contains(ListItem.Filenameandpath,.HDR10.)

And this for HDR10
Code:
String.Contains(ListItem.Filenameandpath,.HDR10.)
Reply
#8
(2020-03-14, 05:05)jurialmunkey Wrote:
(2020-03-14, 03:43)spl147 Wrote:
(2020-03-14, 03:23)jurialmunkey Wrote: Can you use this instead:
Code:
String.Contains(ListItem.Filenameandpath,.HDR10)

Or will that give a false positive with something else?


Yes HDR10 and HDR10+ are 2 different flags  

In that case, what about this for HDR10+
Code:
String.Contains(ListItem.Filenameandpath,.HDR10) + !String.Contains(ListItem.Filenameandpath,.HDR10.)

And this for HDR10
Code:
String.Contains(ListItem.Filenameandpath,.HDR10.)
 

You are a Genius! i never even considered that approach.

Image

Image

Image

Image
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Using the + sign in file names?00
This forum uses Lukasz Tkacz MyBB addons.