From 2c82b79ba22874f61903a246fa4f4f7b99e3db0e Mon Sep 17 00:00:00 2001 From: SnowHead Date: Tue, 5 Mar 2013 20:57:40 +0100 Subject: [PATCH] - moviebrowser: don't show additional files from enigma2 in moviebrowser --- src/gui/moviebrowser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index 91a9b57ba..529bf15ca 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -2066,7 +2066,7 @@ bool CMovieBrowser::onButtonPressMovieInfoList(neutrino_msg_t msg) void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO& movieSelectionHandler, bool skipAsk) { //TRACE( "[onDeleteFile] "); - int test= movieSelectionHandler.file.Name.find(".ts"); + int test= movieSelectionHandler.file.Name.find(".ts", movieSelectionHandler.file.Name.length()-3); if(test == -1) { // not a TS file, return!!!!! @@ -2489,7 +2489,7 @@ bool CMovieBrowser::loadTsFileNamesFromDir(const std::string & dirname) } else { - int test=flist[i].getFileName().find(".ts"); + int test=flist[i].getFileName().find(".ts",flist[i].getFileName().length()-3); if( test == -1) { //TRACE("[mb] other file: '%s'\r\n",movieInfo.file.Name.c_str()); @@ -4077,7 +4077,7 @@ printf("\n"); } } snprintf(npart, sizeof(npart), "%s", name); - char * ptr = strstr(npart, ".ts"); + char * ptr = strstr(npart+strlen(npart)-3, ".ts"); if(ptr) *ptr = 0; 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); 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); - char * ptr = strstr(npart, ".ts"); + char * ptr = strstr(npart+strlen(npart)-3, ".ts"); if(ptr) *ptr = 0; snprintf(spart, sizeof(spart), "%s", name);