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
MediaPortal 1 Plugins
Popular Plugins
My Films
MyFilms and MP 1.2.x
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="CathodeRay" data-source="post: 1061271" data-attributes="member: 128074"><p>Guzzi</p><p></p><p>Thanks for your reply. I've done some more research, and although I've found various things, none bring me any nearer a solution, though I'm hoping it may lead us towards one.</p><p></p><p>From what I can see, in a normal installation, MediaportalDirs.xml doesn't do very much. It is just there as a default and a template if you want to customise directory locations. To achieve that, you need to edit it and copy it to My Documents\Team Mediaportal (not MP's settings folder). This hasn't been done (either by me or MP in the background) so I am using the default MediaportalDirs.xml in MP's program folder. Although there is an entry for the plugins directory, it says 'Don't modify', and there is no entry for the base directory, so I am not sure how I would set that using MediaportalDirs.xml. However, in a spirit of enquiry I added an absolute path for a 'base' directory and modded the plugins entry (and put the resulting MediaportalDirs.xml in My Documents\Team Mediaportal):</p><p></p><p> <Dir id = "Base"></p><p> <Path>C:\Program Files\Team Mediaportal\</Path></p><p> </Dir></p><p></p><p> <!-- The Path were all the Plugins are located. Don't modify --></p><p> <Dir id = "Plugins"></p><p> <Path>C:\Program Files\Team Mediaportal\Plugins\</Path></p><p> </Dir></p><p></p><p>Result: MP config ran with no displayed errors but the plugins tab was blank (no plugins showing); MP started and showed start up splash screens and then bombed out. Relevant logs attached below. Config does use local paths, but as noted no plugins display, MP itself generates loads of errors. Curiously, towards the end of the config log UNC paths appear again (BASS plugins) and even more curiously are accepted. After removing the custom MediaportalDirs.xml MP was a bit wobbly and needed a couple of restarts to get it to start normally.</p><p></p><p>I still have the Installation log from when I installed MP and curiously it shows local paths were used:</p><p></p><p>[ INFO] Using default paths for MediaPortalDirectories now.</p><p>[ INFO] Installer will use the following directories:</p><p>[ INFO] Base: C:\Program Files\Team MediaPortal\MediaPortal</p><p>[ INFO] Config: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal</p><p>[ INFO] Plugins: C:\Program Files\Team MediaPortal\MediaPortal\plugins</p><p>[ INFO] Log: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\log</p><p>[ INFO] Skin: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\skin</p><p>[ INFO] Language: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\language</p><p>[ INFO] Database: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\database</p><p>[ INFO] Thumbs: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\thumbs</p><p>[ INFO] Cache: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\cache</p><p></p><p>So none the wiser there...</p><p></p><p>Yet something somewhere is supplying the UNC paths. Indeed, it appears something changed after the original installation, which used local paths as shown above.</p><p></p><p>I've dug around in the source code to see where MP config generates the 'Using Directories:' bit and it appears to be in Startup.cs:</p><p></p><p> Log.Info("Using Directories:");</p><p> foreach (string options in Enum.GetNames(typeof (Config.Dir)))</p><p> {</p><p> Log.Info("{0} - {1}", options, Config.GetFolder((Config.Dir)Enum.Parse(typeof (Config.Dir), options)));</p><p> }</p><p></p><p>So it appears to have something called Config.Dir but I cannot for the life of me find out where that is (my knowledge of C# is patchy to say the least but someone else maybe able to make sense of the above, although I sort of think the above foreach gets a list of names in a variable called options and then prints out the log lines which add a folder (path/directory) that we see in the log file - but what/where is config.dir???). Doing a 'find text in files' fails to find a relevant \\media-pc type entry, and a thorough search of the registry also failed to find anything relevant. Furthermore, these are in fact (I think) just log entries, ie they aren't setting anything, they are just logging what has already been set (in config.dir)...</p><p></p><p>Any thoughts?</p><p></p><p>CathodeRay</p></blockquote><p></p>
[QUOTE="CathodeRay, post: 1061271, member: 128074"] Guzzi Thanks for your reply. I've done some more research, and although I've found various things, none bring me any nearer a solution, though I'm hoping it may lead us towards one. From what I can see, in a normal installation, MediaportalDirs.xml doesn't do very much. It is just there as a default and a template if you want to customise directory locations. To achieve that, you need to edit it and copy it to My Documents\Team Mediaportal (not MP's settings folder). This hasn't been done (either by me or MP in the background) so I am using the default MediaportalDirs.xml in MP's program folder. Although there is an entry for the plugins directory, it says 'Don't modify', and there is no entry for the base directory, so I am not sure how I would set that using MediaportalDirs.xml. However, in a spirit of enquiry I added an absolute path for a 'base' directory and modded the plugins entry (and put the resulting MediaportalDirs.xml in My Documents\Team Mediaportal): <Dir id = "Base"> <Path>C:\Program Files\Team Mediaportal\</Path> </Dir> <!-- The Path were all the Plugins are located. Don't modify --> <Dir id = "Plugins"> <Path>C:\Program Files\Team Mediaportal\Plugins\</Path> </Dir> Result: MP config ran with no displayed errors but the plugins tab was blank (no plugins showing); MP started and showed start up splash screens and then bombed out. Relevant logs attached below. Config does use local paths, but as noted no plugins display, MP itself generates loads of errors. Curiously, towards the end of the config log UNC paths appear again (BASS plugins) and even more curiously are accepted. After removing the custom MediaportalDirs.xml MP was a bit wobbly and needed a couple of restarts to get it to start normally. I still have the Installation log from when I installed MP and curiously it shows local paths were used: [ INFO] Using default paths for MediaPortalDirectories now. [ INFO] Installer will use the following directories: [ INFO] Base: C:\Program Files\Team MediaPortal\MediaPortal [ INFO] Config: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal [ INFO] Plugins: C:\Program Files\Team MediaPortal\MediaPortal\plugins [ INFO] Log: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\log [ INFO] Skin: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\skin [ INFO] Language: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\language [ INFO] Database: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\database [ INFO] Thumbs: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\thumbs [ INFO] Cache: C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\cache So none the wiser there... Yet something somewhere is supplying the UNC paths. Indeed, it appears something changed after the original installation, which used local paths as shown above. I've dug around in the source code to see where MP config generates the 'Using Directories:' bit and it appears to be in Startup.cs: Log.Info("Using Directories:"); foreach (string options in Enum.GetNames(typeof (Config.Dir))) { Log.Info("{0} - {1}", options, Config.GetFolder((Config.Dir)Enum.Parse(typeof (Config.Dir), options))); } So it appears to have something called Config.Dir but I cannot for the life of me find out where that is (my knowledge of C# is patchy to say the least but someone else maybe able to make sense of the above, although I sort of think the above foreach gets a list of names in a variable called options and then prints out the log lines which add a folder (path/directory) that we see in the log file - but what/where is config.dir???). Doing a 'find text in files' fails to find a relevant \\media-pc type entry, and a thorough search of the registry also failed to find anything relevant. Furthermore, these are in fact (I think) just log entries, ie they aren't setting anything, they are just logging what has already been set (in config.dir)... Any thoughts? CathodeRay [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Films
MyFilms and MP 1.2.x
Contact us
RSS
Top
Bottom