tmdb: show decimal points in rating stars

Origin commit data
------------------
Branch: ni/coolstream
Commit: a873e5b2b2
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-05-01 (Tue, 01 May 2018)

Origin message was:
------------------
- tmdb: show decimal points in rating stars

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-05-01 23:07:28 +02:00
parent eb6883f473
commit 160f11e05c
2 changed files with 1 additions and 3 deletions

View File

@@ -297,8 +297,6 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear)
if (tmdb_active)
{
provider_logo = NEUTRINO_ICON_TMDB;
if (tmdb_stars <= 10)
tmdb_stars *= 10; // recalculate tmdb_stars value for starbar
stars = tmdb_stars;
}
else if (imdb_active)

View File

@@ -73,7 +73,7 @@ class cTmdb
bool getBigCover(std::string cover) { return DownloadUrl("http://image.tmdb.org/t/p/w342" + minfo.poster_path, cover);}
bool getSmallCover(std::string cover) { return DownloadUrl("http://image.tmdb.org/t/p/w185" + minfo.poster_path, cover);}
int getResults() { return minfo.result;}
int getStars() { return (int) (atof(minfo.vote_average.c_str())+0.5);}
int getStars() { return (int) (atof(minfo.vote_average.c_str())*10);}
};
#endif