How to add number of votes?
-
jermine01
- Posts: 7
- Joined: 2012-04-04 18:45:22
How to add number of votes?
I just started using Ant movie catalog. I want to add the no. of votes that each movie receives from imdb. How do I do this? Thanks.
-
antp
- Site Admin
- Posts: 9902
- Joined: 2002-05-30 10:13:07
- Location: Brussels
-
jermine01
- Posts: 7
- Joined: 2012-04-04 18:45:22
-
antp
- Site Admin
- Posts: 9902
- Joined: 2002-05-30 10:13:07
- Location: Brussels
-
jermine01
- Posts: 7
- Joined: 2012-04-04 18:45:22
-
jermine01
- Posts: 7
- Joined: 2012-04-04 18:45:22
-
bad4u
- Posts: 1148
- Joined: 2006-12-11 22:54:46
Choose IMDB script from the list, then click editor button. Now find line
and replace with
If you want to replace 'votes' (beginning with small letter) with 'Votes' (starting with capital letter), add following line behind the modified line:
Remember that you have to do these changes again when there are future script updates.
Code: Select all
Value := 'User Rating: ' + GetField(fieldRating) + ' out of 10 (with ' + Value + ')';Code: Select all
Value := GetField(fieldRating) + '/10 (' + Value + ')';Code: Select all
Value := StringReplace(Value, 'votes', 'Votes');-
jermine01
- Posts: 7
- Joined: 2012-04-04 18:45:22
-
antp
- Site Admin
- Posts: 9902
- Joined: 2002-05-30 10:13:07
- Location: Brussels