Kodi Community Forum
Release Version 2.4.6 - 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: Release Version 2.4.6 (/showthread.php?tid=177061)



Version 2.4.6 - mlaggner - 2013-11-01

01.11.2013 - version 2.4.6
feature: new TV show renamer option: 01x01 format
feature: added a tag for optional tokens {}
fix: added -Djava.net.preferIPv4Stack=true to solve possible networking problems
fix: regression when choosing of local files
fix: reworked actor images (better import performance, jpg/png instead of tbn)
fix: removed http://www.imdb.de (isn't working anymore - http://www.imdb.com is taken all the time, including a force to the preferred scraping language)
fix: some graphical changes to the moviechooser

hint for the optional replacement:
{} = optional replacement
eg: {Year $Y} -> "Year 2013" if $Y is not empty
if $Y is empty (or no $x replacement inside) the complete tag is empty


RE: Version 2.4.6 - myron - 2013-11-01

just another example, where the optional replacement comes in handy Smile

eg if you want to replace like this:
<title> (<year>) - <imdb_id> - <videoformat>

Usually you would do this with
$T ($Y) - $I - $F

But what happens, when some parameter are empty?
Would result in weird names like
<title> () - - <videoformat>

This is where the optional replacement kicks in Smile
Just use the curly brackets and a single replacement char in it.
$T{ ($Y)}{ - $I}{ - $F}
Note the space and separator chars within!
IF the $x value is empty the complete {...} tag will be empty.
But if the $x is filled, it just exchanges the variable, keeping all the extra stuff in there Smile

hth

hth