Release - Version 2.4.6

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mlaggner Offline
Moderator
Posts: 392
Joined: Oct 2012
Reputation: 10
Post: #1
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

tinyMediaManager - THE media manager of your choice - available for Windows, Mac OSX and Linux
Wanna help translate TMM? Join us at transifex
[Image: project_thin_badge.gif]
find quote
myron Offline
Moderator
Posts: 191
Joined: Jan 2011
Reputation: 3
Post: #2
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

tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
[Image: project_thin_badge.gif]
find quote