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

i am trying to use:
xml:
"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.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
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.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#5
Can you use this instead:
Code:
String.Contains(ListItem.Filenameandpath,.HDR10)

Or will that give a false positive with something else?
Arctic Fuse - Alpha now available. Support me on Ko-fi.
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.)
Arctic Fuse - Alpha now available. Support me on Ko-fi.
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

Logout Mark Read Team Forum Stats Members Help
Using the + sign in file names?0