Page 2 of 2
Posted: 2004-06-26 15:57:50
by antp
Hi,
I made the changes that I said (if I did not forget anything
)
Can you check if it is better ?
I haven't tested the scripts, but it should work.
When reading rating, it can use a "." or the system-defined decimal separator (e.g. on my system it is a ",")
ftp://ftp2.antp.be/antp/temp/amc350.rar
The only thing that is not yet done is to not save each viewed movie if you modify one (so if you do not display decimals, modify one movie, all the next movies that you see will have their decimal removed)
Posted: 2004-06-26 22:59:20
by antp
I updated the file to correct a small problem and to include a proper version of the eXtreme Movie Manager import.
Posted: 2004-06-28 10:59:20
by kolia
O.K. I 'll check it out and tell you what I think...
Posted: 2004-06-29 08:51:53
by kolia
OK, here are the problems I've found...
1)-script: you can read but not write to fieldRating (e.g. "SetField(fieldRating, '7.9');" {or '79' or '7,9' or even '7'} does not alter the rating value)
2)saving in xml saves rating in 7.9 format and when opening from xml rating can't be read
DivXManager Import worked OK, importing both digits...
waiting on the fixes...
Posted: 2004-06-29 15:22:20
by antp
1. strange
2. probably the same problem that for the script
I wonder why I did not saw this problem
I'll fix that this evening if I do not forget, it is probably very simple
Posted: 2004-06-29 18:41:54
by antp
It was a stupid mistake in my code
here is a corrected version :
ftp://ftp2.antp.be/antp/temp/amc350.rar
Posted: 2004-07-01 10:01:54
by kolia
OK, It now works fine...
I'll continue using this version and tell you any problems I might have...
Posted: 2004-07-11 18:31:12
by Guest
I found this an important point when migrating to antmoviedb myself.
I've found that for some reason the import from imdb plugin imports numbers like xx.0 (78.0 instead of 7.8) no matter what I did to the code (when I tried to divide it by 10, it kept giving me an error - I guess that was because an integer cannot be a rational number). It did however import it into the database (the number 78.0) in grid view. But as soon as I looked at the same movie in non-grid view 78.0 changed to 10.0, and stayed that way. I wonder if there's something I've done wrong. I've also tried to use the said fieldRatingPercent variable, but it kept telling me there is no such thing. please help, if you can! thanks a million.
Posted: 2004-07-11 22:07:57
by antp
You should have read the whole conversation
I changed back to 0-10 ratings, but now with decimals.
So the script has to give e.g. '7.8' (as a string, with either a dot or Windows-defined decimal separator) and it will be kept '7.8' in the catalog except if you enable the new option that removes the decimal part
I haven't made yet any modification to IMDB script. I do not know what has been done or not by
kolia ; I think he did not update the script for latest 3.5 version of AMC.
Posted: 2004-07-14 09:17:50
by kolia
As i said, I've already switched to amc3.5beta thus meaning that I have changed my Import script to get the new values...
just:
replace "Value := IntToStr(Round(StrToInt(StrGet(Line, BeginPos), 0) + (StrToInt(StrGet(Line, BeginPos + 2), 0) / 10)));"
with "Value := StrGet(Line, BeginPos) + '.' + StrGet(Line, BeginPos + 2);"
or replace "Value := StrGet(Line, BeginPos) + StrGet(Line, BeginPos + 2);"
with "Value := StrGet(Line, BeginPos) + '.' + StrGet(Line, BeginPos + 2);"
if you are using my earlier modification of the script...
very simple, wasn't it?
Posted: 2004-07-14 09:25:35
by antp
What would happen with movies that have 10/10 rating ?
Posted: 2004-07-14 09:35:38
by kolia
haven't found one yet
and I don't think I'll find one...
If you do, tell me which one. If more than five people think the movie is PERFECT, then the DVD is a Must buy!
Posted: 2004-07-14 10:49:02
by antp
Posted: 2004-07-15 11:56:50
by Guest
Thank you antp and kolia so much! I just never thought about that . in the middle...
The fact that I can have a 78.0 rating in grid view and have that changed back to a 10.0 in non-grid view seems to be a bug though.
Thanks again for this kickass program.
Posted: 2004-07-16 17:13:16
by kolia
No, it's not exactly a bug, the program just allows the highest value to be 10 (out of 10)...
Posted: 2004-07-16 17:56:06
by antp
The only place where it checks that the number is between -1 (empty) and 10 is in the fields of the user interface.
Internally there will be no problem to have any other integer value (scripts, export, print, grid view).