mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-14 08:53:38 +02:00
imdb/tmdb: more unifications; poster handling
Origin commit data
------------------
Branch: ni/coolstream
Commit: b9aea3ae5d
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-04-08 (Thu, 08 Apr 2021)
Origin message was:
------------------
- imdb/tmdb: more unifications; poster handling
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -53,6 +53,7 @@ CTMDB* CTMDB::getInstance()
|
||||
CTMDB::CTMDB()
|
||||
{
|
||||
key = g_settings.tmdb_api_key;
|
||||
posterfile = "/tmp/tmdb.jpg";
|
||||
hintbox = NULL;
|
||||
}
|
||||
|
||||
@@ -170,9 +171,9 @@ bool CTMDB::GetMovieDetails(std::string lang, bool second)
|
||||
//printf("test: %s (%s)\n",elements[i].get("character","").asString().c_str(),elements[i].get("name","").asString().c_str());
|
||||
}
|
||||
|
||||
unlink(TMDB_COVER);
|
||||
if (hasCover())
|
||||
getBigCover(TMDB_COVER);
|
||||
unlink(posterfile.c_str());
|
||||
if (hasPoster())
|
||||
getBigPoster(posterfile.c_str());
|
||||
//printf("[TMDB]: %s (%s) %s\n %s\n %d\n",minfo.epgtitle.c_str(),minfo.original_title.c_str(),minfo.release_date.c_str(),minfo.overview.c_str(),minfo.found);
|
||||
|
||||
return true;
|
||||
@@ -226,8 +227,8 @@ std::string CTMDB::CreateMovieText()
|
||||
|
||||
void CTMDB::cleanup()
|
||||
{
|
||||
if (access(TMDB_COVER, F_OK) == 0)
|
||||
unlink(TMDB_COVER);
|
||||
if (access(posterfile.c_str(), F_OK) == 0)
|
||||
unlink(posterfile.c_str());
|
||||
}
|
||||
|
||||
void CTMDB::selectResult(Json::Value elements, int results, int &use_result)
|
||||
|
Reference in New Issue
Block a user