record_setup: add check existing recordings before set new timers

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6dddaff0d2
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-06-02 (Thu, 02 Jun 2016)

Origin message was:
------------------
- record_setup: add check existing recordings before set new timers

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-06-02 21:37:33 +02:00
parent 75dc6e0027
commit 8e429f9e6a
12 changed files with 110 additions and 7 deletions

View File

@@ -2609,6 +2609,26 @@ void CMovieBrowser::loadAllTsFileNamesFromStorage(void)
TRACE("[mb] Dir%d, Files:%d\n", (int)m_dirNames.size(), (int)m_vMovieInfo.size());
}
bool CMovieBrowser::gotMovie(const char *rec_title)
{
//TRACE("[mb]->gotMovie\n");
m_doRefresh = false;
loadAllTsFileNamesFromStorage();
bool found = false;
for (unsigned int i = 0; i < m_vMovieInfo.size(); i++)
{
//printf("[mb] search for %s in %s\n", rec_title, m_vMovieInfo[i].epgTitle.c_str());
if (strcmp(rec_title, m_vMovieInfo[i].epgTitle.c_str()) == 0)
{
found = true;
break;
}
}
return found;
}
static const char * const ext_list[] =
{
"avi", "mkv", "mp4", "flv", "mov", "mpg", "mpeg", "m2ts", "iso"