From: <ze...@us...> - 2007-06-12 21:43:19
|
Revision: 523 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=523&view=rev Author: zebons Date: 2007-06-12 14:43:17 -0700 (Tue, 12 Jun 2007) Log Message: ----------- Corrected bug when trying to launch a file movie store in the root directory (share drive for example) Modified Paths: -------------- trunk/plugins/MyFilms/MesFilmsDetail.cs Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-06-12 21:02:26 UTC (rev 522) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-06-12 21:43:17 UTC (rev 523) @@ -1069,7 +1069,10 @@ if (!multifile) { //case monofile search files belonging same movie (extension cdx or diskx) string folder = file.Substring(0, file.LastIndexOf(@"\")); - file = folder + file.Substring(file.LastIndexOf(@"\") + 1); + if ((folder.Length == 2) && (folder.Substring(1,1) == ":")) + file = folder + "\\" + file.Substring(file.LastIndexOf(@"\") + 1); + else + file = folder + file.Substring(file.LastIndexOf(@"\") + 1); ArrayList items = m_directory.GetDirectory(folder.ToString()); for (int i = 0; i < items.Count; ++i) @@ -1387,8 +1390,9 @@ System.Text.RegularExpressions.MatchCollection oMatches = oRegex.Matches(fi.Name.ToLower()); foreach (System.Text.RegularExpressions.Match oMatch in oMatches) { - if (MediaPortal.Util.Utils.IsVideo(fi.Name)) - result.Add(fi.Name); + if (MediaPortal.Util.Utils.IsVideo(fi.Name) || VirtualDirectory.IsImageFile(System.IO.Path.GetExtension(fi.Name))) + + result.Add(path + "\\" + fi.Name); else { if (fi.Attributes.ToString() == "Directory") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |