mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
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:
@@ -297,8 +297,6 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear)
|
|||||||
if (tmdb_active)
|
if (tmdb_active)
|
||||||
{
|
{
|
||||||
provider_logo = NEUTRINO_ICON_TMDB;
|
provider_logo = NEUTRINO_ICON_TMDB;
|
||||||
if (tmdb_stars <= 10)
|
|
||||||
tmdb_stars *= 10; // recalculate tmdb_stars value for starbar
|
|
||||||
stars = tmdb_stars;
|
stars = tmdb_stars;
|
||||||
}
|
}
|
||||||
else if (imdb_active)
|
else if (imdb_active)
|
||||||
|
@@ -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 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);}
|
bool getSmallCover(std::string cover) { return DownloadUrl("http://image.tmdb.org/t/p/w185" + minfo.poster_path, cover);}
|
||||||
int getResults() { return minfo.result;}
|
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
|
#endif
|
||||||
|
Reference in New Issue
Block a user