Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Desktop Technical Support Page: 1  Previous   Next
Review different after export to xml
Author Message
DVD Profiler Unlimited RegistrantStar Contributoremmeli
www.myprofiler.de
Registered: June 26, 2013
Reputation: High Rating
Germany Posts: 694
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Hi,

why is the review rating different after export to xml file?

I know that half points may be awarded. So would 3,5 point export as 7 points, or not.

but ...



results in collection.xml

<Review Film="6" Video="7" Audio="8" Extras="9"/>

why?

cheers
emmeli


the real BirthYear OverView
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,747
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
It's a bit odd, yes.

But I guess it's because you can't split the first tile. If you rate, the first tile is always full. Only after that do you get to give halfsies.
Karsten
DVD Collectors Online

 Last edited: by DJ Doena
DVD Profiler Unlimited RegistrantStar ContributorMithi
Sushi Annihilator
Registered: March 13, 2007
Reputation: Superior Rating
Germany Posts: 2,217
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting DJ Doena:
Quote:
But I guess it's because you can split the first tile.

"can't" ... what a difference a forgotten 't can make 

A simple multiplication by 2 would have been the wiser choice IMHO, or simply put them out as the decimals they are.
Mithi's little XSLT tinkering - the power of XML --- DVD-Profiler Mini-Wiki
DVD Profiler Unlimited RegistrantStar ContributorTomGaines
Registered Sept. 24, 2001
Registered: March 13, 2007
Reputation: High Rating
Germany Posts: 2,005
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
The formula used here is
(rating * 2) - 1

I am not sure why, but for some reason the database saves the ratings from 0-9 (single digit), where 0 means that it is not rated, and 9 is the full 5 stars.


DVD Profiler Unlimited RegistrantStar Contributoremmeli
www.myprofiler.de
Registered: June 26, 2013
Reputation: High Rating
Germany Posts: 694
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
but is not logical if i wants to use the rating for external app/website. it is not possible to get full stars, whether i use five or ten stars rating.

i think it is a bug and not a feature.


the real BirthYear OverView
DVD Profiler Unlimited RegistrantStaNDarD
Registered: March 31, 2007
Germany Posts: 662
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting emmeli:
Quote:
but is not logical if i wants to use the rating for external app/website. it is not possible to get full stars, whether i use five or ten stars rating.

if ( $rating > 0 ) $rating = $rating + 1;
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,747
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting StaNDarD:
Quote:
if ( $rating > 0 ) $rating = $rating + 1;

if ( $rating > 0 ) $rating += 1;

Karsten
DVD Collectors Online

DVD Profiler Unlimited RegistrantStaNDarD
Registered: March 31, 2007
Germany Posts: 662
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting DJ Doena:
Quote:
Quoting StaNDarD:
Quote:
if ( $rating > 0 ) $rating = $rating + 1;

if ( $rating > 0 ) $rating += 1;


You're right, I guess in most programming languages this is possible.
I guess, this will also be possible in many cases:

if ( $rating > 0 ) $rating++;
DVD Profiler Unlimited RegistrantStar ContributorMithi
Sushi Annihilator
Registered: March 13, 2007
Reputation: Superior Rating
Germany Posts: 2,217
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting emmeli:
Quote:
but is not logical if i wants to use the rating for external app/website.

Actually it is. Those numbers do not represent the stars or bars but the rating-"level"

XML: Rating:
1     
2     
3     
...
8     
9     
( representing the half-star )
Mithi's little XSLT tinkering - the power of XML --- DVD-Profiler Mini-Wiki
 Last edited: by Mithi
DVD Profiler Unlimited RegistrantStar Contributoremmeli
www.myprofiler.de
Registered: June 26, 2013
Reputation: High Rating
Germany Posts: 694
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
@Mithi

thanks. i think this is the only way to properly display the rating. but you need a declaration for the half stars. 

sure i can do a plus one for ten stars, but this is again not logically.

because two half points are one star. and ten half points (rating in dvdprofiler desktop app) are nine stars?

what's the problem is to add/change the number in the database.

such as for example

0 - no rating
1 - half point
2 - one point
...
9 - 4,5 points
10 - 5 points

until then i use a workaround.


the real BirthYear OverView
 Last edited: by emmeli
    Invelos Forums->DVD Profiler: Desktop Technical Support Page: 1  Previous   Next