mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
imdb/tmdb: more unifications; getStars()
Origin commit data
------------------
Branch: ni/coolstream
Commit: cfc25bd53f
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-03 (Mon, 03 May 2021)
Origin message was:
------------------
- imdb/tmdb: more unifications; getStars()
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1687,21 +1687,7 @@ int CEpgData::showIMDb()
|
||||
textCount = epgText.size();
|
||||
|
||||
//rating
|
||||
imdb_rating = imdb->getIMDbElement("imdbRating");
|
||||
|
||||
std::string value = imdb_rating;
|
||||
if (imdb_rating == "N/A")
|
||||
{
|
||||
value = "0";
|
||||
imdb_rating = g_Locale->getText(LOCALE_IMDB_DATA_RATING_FAILED);
|
||||
}
|
||||
else
|
||||
imdb_rating += "/10";
|
||||
|
||||
size_t pos = value.find_first_of(",.");
|
||||
if (pos != std::string::npos)
|
||||
value.replace(pos, 1, ""); // change 8,1 or 8.1 to 81
|
||||
imdb_stars = atoi(value);
|
||||
imdb_stars = imdb->getStars();
|
||||
|
||||
showText(0, sy + toph, imdb->hasPoster());
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user