mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +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);
|
||||
printf("TMDB: %s : %s\n",m_movieSelectionHandler->file.Name.c_str(),cover_file.c_str());
|
||||
cTmdb* tmdb = cTmdb::getInstance();
|
||||
tmdb->setTitle(m_movieSelectionHandler->epgTitle);
|
||||
if ((tmdb->getResults() > 0) && (tmdb->hasCover())) {
|
||||
if (!cover_file.empty())
|
||||
if (tmdb->getSmallCover(cover_file))
|
||||
refresh();
|
||||
}
|
||||
if (tmdb) {
|
||||
if (tmdb)
|
||||
{
|
||||
tmdb->setTitle(m_movieSelectionHandler->epgTitle);
|
||||
if ((tmdb->getResults() > 0) && (tmdb->hasCover()))
|
||||
{
|
||||
if (!cover_file.empty())
|
||||
if (tmdb->getSmallCover(cover_file))
|
||||
refresh();
|
||||
}
|
||||
tmdb->cleanup();
|
||||
tmdb = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user