Page 1 of 1

DVDpedia: rating statistics

Posted: Wed Aug 08, 2012 5:31 pm
by PhiBo
Why is there no option in the statistics view to include the ratings field? I don't mean the five star personal rating but the field where for example IMDB scores are put into.

Re: DVDpedia: rating statistics

Posted: Thu Aug 09, 2012 4:29 am
by Conor
It's a field that diverges a lot in values and hence not quite practical for the statistics. But you can include it by modifying the statistics.xml file inside the DVDpedia.app package; control click and select "Show Package Contents..." navigate to the resources folder and open "statistics.xml" with a text editor and insert the following between the other <dict> sections:

Code: Select all

	<dict>
		<key>identifier</key>
		<string>rating</string>
		<key>type</key>
		<integer>1</integer>
	</dict>
Keep a copy of a the statistics.xml file so you can drop it in after an update that will update the file as well to it's original settings.

Re: DVDpedia: rating statistics

Posted: Thu Aug 09, 2012 4:54 am
by PhiBo
Hi, thanks for the tip, that worked perfectly. :)

When I played around with smart list rules for the ratings field I had the impression the field is defined for integer values. Nonetheless when fetching data from IMDB the field is filled with something more like a string (e.g. "7.7 (118,659 votes)"). I don't know if this is possible with all data sources but I think you should either condense whatever you read from a data source into a numerical value (which is what I do manually now) or redefine the ratings field as string value.

Re: DVDpedia: rating statistics

Posted: Thu Aug 09, 2012 8:37 am
by Conor
It's a field that is trap in hybrid land. Most users use it as a number, but a large number like to add the number of votes that produce the rating. So we like to treat it like a number, but have left it free to allow more than that. As long as the number comes first in the field, then it can be used properly in the smart collection. Thank you for the feedback.