mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
Merge branch 'master' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Origin commit data
------------------
Branch: ni/coolstream
Commit: a1ed6bb721
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-16 (Fri, 16 Dec 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2812,24 +2812,37 @@ bool CMovieBrowser::onSortMovieInfoHandleList(std::vector<MI_MOVIE_INFO*>& 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]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user