From 95c619ad885aee0d2f3162620338ef17ffa014a7 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 29 Dec 2016 00:47:35 +0100 Subject: [PATCH] Revert "- moviebrowser: fix crash; disable non-existing movie directories" This reverts commit 615c4f360a6933cef5cfc5efd68b91e6006c4b3b, because this forces user to re-enable these directories manually. --- src/gui/moviebrowser/mb.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index 6ce73c0f8..99ebf9023 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -2727,37 +2727,24 @@ bool CMovieBrowser::onSortMovieInfoHandleList(std::vector& handl void CMovieBrowser::updateDir(void) { - struct stat info; - m_dir.clear(); - #if 0 // check if there is a movie dir and if we should use it if (g_settings.network_nfs_moviedir[0] != 0) { - if (!(stat(g_settings.network_nfs_moviedir.c_str(), &info) == 0 && S_ISDIR(info.st_mode))) - m_settings.storageDirMovieUsed = false; - std::string name = g_settings.network_nfs_moviedir; addDir(name,&m_settings.storageDirMovieUsed); } #endif - // check if there is a record dir and if we should use it if (!g_settings.network_nfs_recordingdir.empty()) { - if (!(stat(g_settings.network_nfs_recordingdir.c_str(), &info) == 0 && S_ISDIR(info.st_mode))) - m_settings.storageDirRecUsed = false; - addDir(g_settings.network_nfs_recordingdir, &m_settings.storageDirRecUsed); cHddStat::getInstance()->statOnce(); } for (int i = 0; i < MB_MAX_DIRS; i++) { - if (!(stat(m_settings.storageDir[i].c_str(), &info) == 0 && S_ISDIR(info.st_mode))) - m_settings.storageDirUsed[i] = false; - if (!m_settings.storageDir[i].empty()) addDir(m_settings.storageDir[i],&m_settings.storageDirUsed[i]); }