mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
- moviebrowser: don't show additional files from enigma2 in moviebrowser
This commit is contained in:
@@ -2066,7 +2066,7 @@ bool CMovieBrowser::onButtonPressMovieInfoList(neutrino_msg_t msg)
|
|||||||
void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO& movieSelectionHandler, bool skipAsk)
|
void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO& movieSelectionHandler, bool skipAsk)
|
||||||
{
|
{
|
||||||
//TRACE( "[onDeleteFile] ");
|
//TRACE( "[onDeleteFile] ");
|
||||||
int test= movieSelectionHandler.file.Name.find(".ts");
|
int test= movieSelectionHandler.file.Name.find(".ts", movieSelectionHandler.file.Name.length()-3);
|
||||||
if(test == -1)
|
if(test == -1)
|
||||||
{
|
{
|
||||||
// not a TS file, return!!!!!
|
// not a TS file, return!!!!!
|
||||||
@@ -2489,7 +2489,7 @@ bool CMovieBrowser::loadTsFileNamesFromDir(const std::string & dirname)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int test=flist[i].getFileName().find(".ts");
|
int test=flist[i].getFileName().find(".ts",flist[i].getFileName().length()-3);
|
||||||
if( test == -1)
|
if( test == -1)
|
||||||
{
|
{
|
||||||
//TRACE("[mb] other file: '%s'\r\n",movieInfo.file.Name.c_str());
|
//TRACE("[mb] other file: '%s'\r\n",movieInfo.file.Name.c_str());
|
||||||
@@ -4077,7 +4077,7 @@ printf("\n");
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
snprintf(npart, sizeof(npart), "%s", name);
|
snprintf(npart, sizeof(npart), "%s", name);
|
||||||
char * ptr = strstr(npart, ".ts");
|
char * ptr = strstr(npart+strlen(npart)-3, ".ts");
|
||||||
if(ptr)
|
if(ptr)
|
||||||
*ptr = 0;
|
*ptr = 0;
|
||||||
find_new_part(npart, dpart, sizeof(dpart) );
|
find_new_part(npart, dpart, sizeof(dpart) );
|
||||||
@@ -4289,7 +4289,7 @@ printf("copy: jump bookmark %d at %" PRId64 " len %" PRId64 "\n", bcount, books[
|
|||||||
tt = time(0);
|
tt = time(0);
|
||||||
printf("********* %d boormarks, to %s file(s), expected size to copy %" PRId64 ", start time %s", bcount, onefile ? "one" : "many", newsize, ctime (&tt));
|
printf("********* %d boormarks, to %s file(s), expected size to copy %" PRId64 ", start time %s", bcount, onefile ? "one" : "many", newsize, ctime (&tt));
|
||||||
snprintf(npart, sizeof(npart), "%s", name);
|
snprintf(npart, sizeof(npart), "%s", name);
|
||||||
char * ptr = strstr(npart, ".ts");
|
char * ptr = strstr(npart+strlen(npart)-3, ".ts");
|
||||||
if(ptr)
|
if(ptr)
|
||||||
*ptr = 0;
|
*ptr = 0;
|
||||||
snprintf(spart, sizeof(spart), "%s", name);
|
snprintf(spart, sizeof(spart), "%s", name);
|
||||||
|
Reference in New Issue
Block a user