mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
- moviebrowser: better check for *tmdb's availability
Signed-off-by: GetAway <get-away@t-online.de>
This commit is contained in:
@@ -2071,13 +2071,15 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
|
|||||||
str_replace(extension, ".jpg", cover_file);
|
str_replace(extension, ".jpg", cover_file);
|
||||||
printf("TMDB: %s : %s\n",m_movieSelectionHandler->file.Name.c_str(),cover_file.c_str());
|
printf("TMDB: %s : %s\n",m_movieSelectionHandler->file.Name.c_str(),cover_file.c_str());
|
||||||
cTmdb* tmdb = cTmdb::getInstance();
|
cTmdb* tmdb = cTmdb::getInstance();
|
||||||
tmdb->setTitle(m_movieSelectionHandler->epgTitle);
|
if (tmdb)
|
||||||
if ((tmdb->getResults() > 0) && (tmdb->hasCover())) {
|
{
|
||||||
if (!cover_file.empty())
|
tmdb->setTitle(m_movieSelectionHandler->epgTitle);
|
||||||
if (tmdb->getSmallCover(cover_file))
|
if ((tmdb->getResults() > 0) && (tmdb->hasCover()))
|
||||||
refresh();
|
{
|
||||||
}
|
if (!cover_file.empty())
|
||||||
if (tmdb) {
|
if (tmdb->getSmallCover(cover_file))
|
||||||
|
refresh();
|
||||||
|
}
|
||||||
tmdb->cleanup();
|
tmdb->cleanup();
|
||||||
tmdb = NULL;
|
tmdb = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user