From: <ze...@us...> - 2007-07-11 10:32:41
|
Revision: 681 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=681&view=rev Author: zebons Date: 2007-07-11 03:32:38 -0700 (Wed, 11 Jul 2007) Log Message: ----------- Bug corrected when launching a list of movies separated by semicolon. Bug corrected if search path for movies is not ended by a'\' Modified Paths: -------------- trunk/plugins/MyFilms/MesFilmsDetail.cs Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-08 22:17:27 UTC (rev 680) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-11 10:32:38 UTC (rev 681) @@ -1047,7 +1047,7 @@ } else { - wfile = filename.Substring(start, at - 1); + wfile = filename.Substring(start, at); file = SearchMovie(filename.Substring(start, at - start).Trim().ToString(), StrDirStor); } //DataRow[] r = LectureDonn\xE9es(StrSelect, StrSort, StrSortSens); @@ -1424,8 +1424,14 @@ else { if (fi.Attributes.ToString() == "Directory") - if (System.IO.File.Exists(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) - result.Add(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); + if (path.LastIndexOf(@"\") + 1 == path.Length) + { + if (System.IO.File.Exists(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) + result.Add(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); + } + else + if (System.IO.File.Exists(path + "\\" + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) + result.Add(path + " \\" + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |