home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
.iso and .img is not added (in IMDBFetcher.cs) when scanning movie db from conf
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Craydk" data-source="post: 172162" data-attributes="member: 51922"><p>When scanning movie folders to movie db .iso and .img are not properly added to the list.</p><p>it can be fixed VERY crude by adding : </p><p> if (item.Path.ToLower().IndexOf(".iso") >= 0)</p><p> availableFiles.Add(item.Path);</p><p> if (item.Path.ToLower().IndexOf(".img") >= 0)</p><p> availableFiles.Add(item.Path);</p><p>to</p><p>private static void CountFiles(string path, ref ArrayList availableFiles) in IMDBFetcher.cs but that is far from pretty.</p><p></p><p>and if it could refrain from mounting in deamon tools (takes forever) it would be nice to.</p><p></p><p>The changed method looks like this. </p><p></p><p> private static void CountFiles(string path, ref ArrayList availableFiles)</p><p> {</p><p> //</p><p> // Count the files in the current directory</p><p> // and add them to the list of availble files</p><p> //</p><p> try</p><p> {</p><p> VirtualDirectory dir = new VirtualDirectory();</p><p> dir.SetExtensions(MediaPortal.Util.Utils.VideoExtensions);</p><p> ArrayList items = dir.GetDirectoryUnProtected(path, true);</p><p> foreach (GUIListItem item in items)</p><p> {</p><p> if (item.IsFolder)</p><p> {</p><p> if (item.Label != "..")</p><p> {</p><p> if (item.Path.ToLower().IndexOf("video_ts") >= 0)</p><p> {</p><p> string strFile = String.Format(@"{0}\VIDEO_TS.IFO", item.Path);</p><p> availableFiles.Add(strFile);</p><p> //System.Windows.Forms.MessageBox.Show(strFile);</p><p> }</p><p> else</p><p> {</p><p> if (item.Path.ToLower().IndexOf(".iso") >= 0)</p><p> availableFiles.Add(item.Path);</p><p> if (item.Path.ToLower().IndexOf(".img") >= 0)</p><p> availableFiles.Add(item.Path);</p><p></p><p> //System.Windows.Forms.MessageBox.Show(item.Path);</p><p> CountFiles(item.Path, ref availableFiles);</p><p> }</p><p> }</p><p> }</p><p> else</p><p> {</p><p> availableFiles.Add(item.Path);</p><p> // System.Windows.Forms.MessageBox.Show(item.Path);</p><p> }</p><p> }</p><p> }</p><p> catch (Exception e)</p><p> {</p><p> Log.Info("Exception counting files:{0}", e);</p><p> // Ignore</p><p> }</p><p> }</p></blockquote><p></p>
[QUOTE="Craydk, post: 172162, member: 51922"] When scanning movie folders to movie db .iso and .img are not properly added to the list. it can be fixed VERY crude by adding : if (item.Path.ToLower().IndexOf(".iso") >= 0) availableFiles.Add(item.Path); if (item.Path.ToLower().IndexOf(".img") >= 0) availableFiles.Add(item.Path); to private static void CountFiles(string path, ref ArrayList availableFiles) in IMDBFetcher.cs but that is far from pretty. and if it could refrain from mounting in deamon tools (takes forever) it would be nice to. The changed method looks like this. private static void CountFiles(string path, ref ArrayList availableFiles) { // // Count the files in the current directory // and add them to the list of availble files // try { VirtualDirectory dir = new VirtualDirectory(); dir.SetExtensions(MediaPortal.Util.Utils.VideoExtensions); ArrayList items = dir.GetDirectoryUnProtected(path, true); foreach (GUIListItem item in items) { if (item.IsFolder) { if (item.Label != "..") { if (item.Path.ToLower().IndexOf("video_ts") >= 0) { string strFile = String.Format(@"{0}\VIDEO_TS.IFO", item.Path); availableFiles.Add(strFile); //System.Windows.Forms.MessageBox.Show(strFile); } else { if (item.Path.ToLower().IndexOf(".iso") >= 0) availableFiles.Add(item.Path); if (item.Path.ToLower().IndexOf(".img") >= 0) availableFiles.Add(item.Path); //System.Windows.Forms.MessageBox.Show(item.Path); CountFiles(item.Path, ref availableFiles); } } } else { availableFiles.Add(item.Path); // System.Windows.Forms.MessageBox.Show(item.Path); } } } catch (Exception e) { Log.Info("Exception counting files:{0}", e); // Ignore } } [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
.iso and .img is not added (in IMDBFetcher.cs) when scanning movie db from conf
Contact us
RSS
Top
Bottom