From: <gre...@us...> - 2007-07-24 00:06:33
|
Revision: 755 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=755&view=rev Author: gregmac45 Date: 2007-07-23 17:06:29 -0700 (Mon, 23 Jul 2007) Log Message: ----------- create the thumbnail directory specified in the config xml if it doesn't exist using MediaPortal/Thumbs/OnlineVideos if no thumbnail directory is specified in the config xml Modified Paths: -------------- trunk/plugins/OnlineVideos/Source/OnlineVideos/GUIOnlineVideos.cs Modified: trunk/plugins/OnlineVideos/Source/OnlineVideos/GUIOnlineVideos.cs =================================================================== --- trunk/plugins/OnlineVideos/Source/OnlineVideos/GUIOnlineVideos.cs 2007-07-23 13:27:22 UTC (rev 754) +++ trunk/plugins/OnlineVideos/Source/OnlineVideos/GUIOnlineVideos.cs 2007-07-24 00:06:29 UTC (rev 755) @@ -356,6 +356,13 @@ } XmlNode thumbNode = doc.SelectSingleNode("//settings/thumbLocation"); msThumbLocation = thumbNode.InnerText; + if(String.IsNullOrEmpty(msThumbLocation)){ + msThumbLocation = + System.IO.Directory.GetCurrentDirectory()+"/Thumbs/OnlineVideos/"; + } + if(System.IO.Directory.Exists(msThumbLocation)==false){ + System.IO.Directory.CreateDirectory(msThumbLocation); + } //lsFilterArray //Log.Write("filter value {0}",filter.InnerText); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |