- Moderator
- #71
check if you can see some backtrace in MediaPortal.log.
Code:
2009-03-26 14:44:41.460875 [Info.][MPMain]: Error initializing window:Sohvaperuna.MyTorrents.MyTorrents
Could not find file 'C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\MyTorrents.xml'.
mscorlib at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Threading.CompressedStack.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup
(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at Sohvaperuna.MyTorrents.MyTorrents.Init()
at MediaPortal.GUI.Library.PluginManager.LoadWindowPlugin(String strFile)
I'm really sorry, but it's obvious to me now that I've put the MyTorrents.xml file in the wrong place. I had it in my "Program Files\Team MediaPortal\MediaPortal" folder instead of in the "Application Data\Team MediaPortal\MediaPortal". It works now. Perhaps you should put the whole path in your readme for n00bs.
EDIT:
Now that I've got it to work, is it possible to have some sort of hirearchy for the icon display? If you have two icons triggered by the same torrent name (hdtv + xvid) none of these two icons are shown at all. It would be nice if the plugin could show the first one in the <map>-list and ignore the other one.
Code:
<map><key>divx</key><icon>Logos\divx.png</icon></map> [B]Codec is more interesting, these should have priority
[/B]<map><key>xvid</key><icon>Logos\xvid.png</icon></map>
<map><key>mkv</key><icon>Logos\H264.png</icon></map>
<map><key>hdtv</key><icon>Logos\hdtv.png</icon></map> [B]This one will ONLY show up if there's no codec named in the torrent name[/B]
Thanks
Emph