2015-03-05, 00:27
(2015-03-04, 22:58)DanCooper Wrote:(2015-03-04, 22:27)berents Wrote: Hi and thanks for a great tool!
I discovered a small snag with the "Decimal symbol" setting in Windows regional settings. If it is set to . EMM does not display a new filename for most of the entries in the bulk rename dialog. Like below.
If changed to , everything works as expected.
From the log it seems to be related to casting of string to the Double type. Maybe the movie rating?
Excerpt from the log
2015-03-04 21:14:53.2372;generic.EmberCore.BulkRename.FileFolderRenamer;generic.EmberCore.BulkRename.FileFolderRenamer.ProccessPattern;93;ERROR;ProccessPattern;"EXCEPTION OCCURRED:System.InvalidCastException: Conversion from string ""5.6"" to type 'Double' is not valid. ---> System.FormatException: Input string was not in a correct format.
at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
--- End of inner exception stack trace ---
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value)
at generic.EmberCore.BulkRename.FileFolderRenamer.ProccessPattern(FileRename f, String opattern, Boolean isPath, Boolean isMultiEpisode)* at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value)
at generic.EmberCore.BulkRename.FileFolderRenamer.ProccessPattern(FileRename f, String opattern, Boolean isPath, Boolean isMultiEpisode)"
Not a big deal, just thought I'd report it :-D
Please rescrape the rating from "12 Years a Slave" and try it again.
If you still have no new path and file name for this movie I will try again to fix this issue (i don't understand this f*** problem).
If you have a new path and file name... rescrape the ratings of all your movies.
My bad, I mixed up my regional settings. It's ok with . (the same that's in the .nfo file) and it does not work with , as a decimal symbol on that machine.
I believe EMM would write the use the current decimal symbol when writing the .nfo file. My .nfo files are generated by another program, obviously not aware of regional settings. I made some minor changes to the code to convert the decimal symbol to the current locale (I need to have the , as a decimal symbol for another program).
All is good, and sorry for the confusion!