Kodi Community Forum
Renamer - the file name contains "note" - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+---- Forum: TinyMediaManager (https://forum.kodi.tv/forumdisplay.php?fid=204)
---- Thread: Renamer - the file name contains "note" (/showthread.php?tid=355512)



Renamer - the file name contains "note" - Zwanzig - 2020-06-28

Hello
I try to insert "note" in the file name in a quite specific way but somehow I fail.
note:
1 - "A"
2 - "B" - all other than "A"
3 - the "note" field is empty
If "A" isĀ  - (#A)
If different thenĀ  - (2 # B)
If empty, nothing

Try:
${if movie.note = "A"}(#A)${else}${end} ${if !movie.note = "A"}(2#B)${else}${end}
it works - but if the note field is empty it gives the result (2#) - and I need the "note" field to be empty - nothing added to the file name

How to improve it?


RE: Renamer - the file name contains "note" - tars - 2020-06-28

Does this work?

${if !movie.note}${else}${if movie.note = "A"}(#A)${else}(2#B)${end}${end}


RE: Renamer - the file name contains "note" - Zwanzig - 2020-06-29

Thanks for the advice
I am at work for now, I will test it thoroughly on Friday.
But when I look at it - it makes sense and will probably work.
This is what I ment.


RE: Renamer - the file name contains "note" - Zwanzig - 2020-07-05

OK Checked and works Smile
Thanks again for your help.


This forum uses Lukasz Tkacz MyBB addons.