diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index 49c1d2e36..b8738a7dc 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -51,6 +51,7 @@ #include "mb_functions.h" #include "mb_help.h" #include +#include #include #include #include @@ -423,8 +424,6 @@ void CMovieBrowser::init(void) m_doRefresh = false; m_doLoadMovies = false; - - imdb = CIMDB::getInstance(); } void CMovieBrowser::initGlobalStorageSettings(void) @@ -813,6 +812,7 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey) hintBox.paint(); std::string title = m_movieSelectionHandler->epgTitle; + CIMDB *imdb = CIMDB::getInstance(); imdb->getIMDb(title); #if 0 @@ -878,6 +878,7 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey) printf("* poster: copy error\n"); } + imdb = NULL; //m_movieInfo.saveMovieInfo(*m_movieSelectionHandler); hintBox.hide(); } diff --git a/src/gui/moviebrowser/mb.h b/src/gui/moviebrowser/mb.h index f7c990555..0b125bd1c 100644 --- a/src/gui/moviebrowser/mb.h +++ b/src/gui/moviebrowser/mb.h @@ -61,7 +61,6 @@ #include #include #include -#include #define MAX_NUMBER_OF_BOOKMARK_ITEMS MI_MOVIE_BOOK_USER_MAX // we just use the same size as used in Movie info (MAX_NUMBER_OF_BOOKMARK_ITEMS is used for the number of menu items) #define MOVIEBROWSER_SETTINGS_FILE CONFIGDIR "/moviebrowser.conf" @@ -263,7 +262,6 @@ class CMovieBrowser : public CMenuTarget, public CProgressSignals void loadYTitles(int mode, std::string search = "", std::string id = ""); bool showYTMenu(bool calledExternally = false); void refreshYTMenu(); - CIMDB *imdb; public: // Functions //////////////////////////////////////////////////////////7 CMovieBrowser(); //P1