Music and iTunes Library Plugin Setup details

Re: Music and iTunes Library Plugin Setup details

Postby jcalton88 » Sun Sep 13, 2009 7:48 am

I just put some videos in my music folders, if you have a VF set up in the configurator with your music it will break it(automatically starts playing movie) but if you set up the music library via the musicplugin.xml it doesn't see the video and works fine. The blank folders wasn't really what I was talking about, I was talking about if I click on a genre it will take me to a blank screen(black in my case, but without a theme it would be the default blue). Like I said, I think thats a problem with my itunes library, just too many genres and I'm sure some are broken genres and haven't been updated by Itunes yet.

I'll try clearing the cache and see if anything changes, I did notice some of my folder.jpgs didn't show, although the backdrops show perfectly.

Is it possible to create a cache folder just for the music plugin? This would be good for setting up the library first(if anything breaks the cache, like loading something wrong as you said) that way you could clear the music plug-in cache without destroying the rest of your cache.

You said eventually the config will be implemented in the configurator, will things such as the view genre and view artist be put into the In MB config menu's?

And as far as the invalid path, I should have noted it was most likely my fault, thats why I copied the xml to the root folder so I couldn't possibly make a mistake, :-).
jcalton88
 
Posts: 466
Joined: Thu Jul 02, 2009 7:33 am

Re: Music and iTunes Library Plugin Setup details

Postby Nephelyn » Sun Sep 13, 2009 7:58 am

Just committed 0.5.0.2.

Felix, in order not to "break" the existing functionality of MB, i made it so that if there is one video in the folder it seems it as a movie. The only other way is if you see one song in a folder it will all be seen as songs and that would "break" it.

Edit, Felix, I am going to assume you got it working ... what was wrong, did the warnings help?
Last edited by Nephelyn on Sun Sep 13, 2009 8:28 am, edited 1 time in total.
Nephelyn
 
Posts: 324
Joined: Wed Jun 03, 2009 6:58 pm
Location: Cape Town, SA

Re: Music and iTunes Library Plugin Setup details

Postby jcalton88 » Sun Sep 13, 2009 8:03 am

With the older revision I'm not sure, kept getting the object is not set to an instance of an object error. I think when you added the warnings it cut that off from happening because if it didn't properly load the Itunes library it disabled the plug-in.

I think the warnings helped out as it gave me an idea of what to check.

The problem I had earlier today was I guess I was typing the path wrong, but it works fine now.
jcalton88
 
Posts: 466
Joined: Thu Jul 02, 2009 7:33 am

Re: Music and iTunes Library Plugin Setup details

Postby Nephelyn » Sun Sep 13, 2009 8:27 am

Mr. Alton - it might be that current it only sees the following as music,

case ".mp3":
case ".wma":
case ".acc":
case ".wpl":

So it reads the metadata from the xml file but does not support the type. What type is your music?

I just fixed that it wont load those files and log it to the log file. Also it wont load files from the library it cant find.

Version now .5.0.3
Nephelyn
 
Posts: 324
Joined: Wed Jun 03, 2009 6:58 pm
Location: Cape Town, SA

Re: Music and iTunes Library Plugin Setup details

Postby jcalton88 » Sun Sep 13, 2009 8:39 am

All of my music is in mp3 format. Its odd, I just checked the itunes music library.xml for the genre's that lead to a blank screen, and the xml points to the song right, and the song plays fine, so I'm not sure why it doesn't show up. I'll have to investigate further, lol
jcalton88
 
Posts: 466
Joined: Thu Jul 02, 2009 7:33 am

Re: Music and iTunes Library Plugin Setup details

Postby FeLiX » Sun Sep 13, 2009 9:52 am

Nephelyn wrote:Just committed 0.5.0.2.

Felix, in order not to "break" the existing functionality of MB, i made it so that if there is one video in the folder it seems it as a movie. The only other way is if you see one song in a folder it will all be seen as songs and that would "break" it.

Edit, Felix, I am going to assume you got it working ... what was wrong, did the warnings help?


never seen a single warning :( Demonseed was good enough to send me his plugin folder contents and dropped them in the folder... removed the video and it worked. so more a work around than fixed it.
FeLiX
 
Posts: 182
Joined: Sun Apr 19, 2009 4:34 pm
Location: Perth, Western Australia

Re: Music and iTunes Library Plugin Setup details

Postby artbatista » Sun Sep 13, 2009 2:41 pm

Same here, built last night (1374) and the plugin is in the plugins directory, but does not show in configurator. I put in my XMl file that I had saved and when I started MB it complained that the music plugin could not be loaded.

How do I enable loging?

Art


jcalton88 wrote:Alright, Just got home from work and started testing again. Downloaded new trunk, compiled, uninstalled previous version, installed the new revision. Deleted cache(except my display preferences) and started to go to town with the xml. I did not rebuild the plugin, but I did delete the XML and let it rebuild, and also uninstalled all other plug-ins. I will note that the music plug-in disappeared entirely from the configurator, but is in the plugins folder.

First couple times I couldn't get it to launch but it kept saying the path was invalid, so I cheated and copied my Itunes Music Library.xml directly to the C root so the path would be "C:\Itunes Music library.xml" It loaded perfectly. Tried again in my default path and it worked fine from there. So its loading fine for me now.

When choosing a genre, a lot of them go to a blank screen. I think this may be a problem with the itunes library and not the plug-in or MB.
artbatista
 
Posts: 27
Joined: Sat Aug 02, 2008 9:55 pm

Re: Music and iTunes Library Plugin Setup details

Postby artbatista » Sun Sep 13, 2009 3:38 pm

Ok, I just built 1379 and here is what I did.

1.- Uninstalled previous version
2.- Deleted left over directories (MediaBrowser) in "Program Files" and "Program Data".
3.- Downloaded and built latest version (1379)
4.- Ran configurator. Music plugin now shows in the plugins section.
5.- Ran MCE, MediaBrowser

got this error (as expected, since there is no XML file the first time):

Image

6.- Exited MCE and edited the MusicPlugin.xml, as follows:

Code: Select all
<?xml version="1.0"?>
<Settings>
<Setting ShowGenreIniTunesLibrary="True" />
<Setting ShowArtistIniTunesLibrary="True" />
<Setting LoadiTunesLibrary="True" />
<Setting iTunesLibraryXMLPath="c:\Users\Arturo\Music\iTunes\iTunes Music Library.xml" />
<Setting RefreshiTunesLibrary="True" />
<Setting iTunesVirtualFolderName="Music" />
<Setting LoadNormalMusicLibrary="false" />
<Setting MusicMBFolderName="Music Library" />
<Setting MusicPath="C:\music" />
<Setting InitialPath="C:\ProgramData\MediaBrowser\StartupFolder\..\ImageCache" />
<Setting SongImage="" />
<Setting ShowPlaylistAsFolder="True" />
<Setting PlayListFolderName="_Playlists" />
</Settings>


Here is a screen capture of my itunes directory listing. Note that the path is correct for the itunes XML file.

Image

7.- Deleted the previous log file.
8.- Ran MCE, MB again, got this:

Image

9.- Here is the log:

Code: Select all
4:09:57.344 PM 13/9/2009 , Info , Successfully loaded fastload data for : C:\ProgramData\MediaBrowser\Cache\playstate MediaBrowser.Library.Entities.PlaybackStatus ,  , 8 ,

4:09:57.697 PM 13/9/2009 , Info , Tyring to load Music and iTunes library. v0.5.0.3 loaded by ehExtHost.exe. ,  , 1 , Application

4:09:57.745 PM 13/9/2009 , Info , MusicPlugin.XmlSerializers,, Version=1.0.0.0,, Culture=neutral,, PublicKeyToken=null is being resolved! ,  , 1 , Application

4:09:57.747 PM 13/9/2009 , Info , MusicPlugin.XmlSerializers is being resolved! ,  , 1 , Application

4:09:58.207 PM 13/9/2009 , Error , MusicPlugin ( Unhandled exception.  Type=System.InvalidOperationException Msg=There is an error in XML document (2,, 2). Src=System.Xml [n] StackTrace= [n]    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,, String encodingStyle,, XmlDeserializationEvents events) [n]    at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) [n]    at MusicPlugin.Util.Settings.LoadSettings() [n]    at MusicPlugin.Util.Settings.InitSettings(String path) [n]    at MusicPlugin.Plugin.ValidateSettings(String initialFolder) ) ,  , 1 , Application

4:10:01.404 PM 13/9/2009 , Info , Music plugin,, iTunes nor Normal Music enabled,, probably using folder specification (vf files) via configurator. ,  , 1 , Application

4:10:01.549 PM 13/9/2009 , Info , Finished validating : C:\ProgramData\MediaBrowser\Cache\playstate MediaBrowser.Library.Entities.PlaybackStatus ,  , 8 ,

4:10:01.971 PM 13/9/2009 , Info , Parental Control Initialized ,  , 1 , Application

4:10:02.512 PM 13/9/2009 , Info , Metadata changed for the following item Video (first pass : True forced via UI : False) ,  , 24 , Fast metadata refresher-Worker

4:10:02.562 PM 13/9/2009 , Info , Metadata changed for the following item Video (first pass : False forced via UI : False) ,  , 22 , Slow metadata refresher-Worker

4:10:02.624 PM 13/9/2009 , Info , Metadata changed for the following item Video (first pass : True forced via UI : False) ,  , 24 , Fast metadata refresher-Worker

4:10:02.654 PM 13/9/2009 , Info , Metadata changed for the following item Video (first pass : False forced via UI : False) ,  , 22 , Slow metadata refresher-Worker

4:10:02.751 PM 13/9/2009 , Error , Failed to update plugin ( Unhandled exception.  Type=System.Net.WebException Msg=The remote server returned an error: (404) Not Found. Src=System [n] StackTrace= [n]    at System.Net.HttpWebRequest.GetResponse() [n]    at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri,, ICredentials credentials) [n]    at System.Xml.XmlDownloadManager.GetStream(Uri uri,, ICredentials credentials) [n]    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri,, String role,, Type ofObjectToReturn) [n]    at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) [n]    at System.Threading.CompressedStack.runTryCode(Object userData) [n]    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code,, CleanupCode backoutCode,, Object userData) [n]    at System.Threading.CompressedStack.Run(CompressedStack compressedStack,, ContextCallback callback,, Object state) [n]    at System.Xml.XmlTextReaderImpl.OpenUrl() [n]    at System.Xml.XmlTextReaderImpl.Read() [n]    at System.Xml.XmlLoader.Load(XmlDocument doc,, XmlReader reader,, Boolean preserveWhitespace) [n]    at System.Xml.XmlDocument.Load(XmlReader reader) [n]    at MediaBrowser.Util.Updater.checkUpdate() ) ,  , 8 ,

4:10:06.695 PM 13/9/2009 , Info , Loading display prefs for C:\ProgramData\MediaBrowser\StartupFolder ,  , 1 , Application

4:10:08.023 PM 13/9/2009 , Verbose , Loading image : C:\ProgramData\MediaBrowser\ImageCache\ee7028ec-651b-5e7b-9720-8bbd36d9a4a9.jpg ,  , 1 , Application

4:10:08.083 PM 13/9/2009 , Verbose , Loading image : C:\ProgramData\MediaBrowser\ImageCache\9711d81a-ab44-430e-2068-9ec44446ff99.jpg ,  , 1 , Application

4:10:08.255 PM 13/9/2009 , Info , Metadata changed for the following item Video (first pass : True forced via UI : False) ,  , 24 , Fast metadata refresher-Worker

4:10:08.338 PM 13/9/2009 , Info , Metadata changed for the following item Video (first pass : False forced via UI : False) ,  , 21 , Slow metadata refresher-Worker

4:10:08.403 PM 13/9/2009 , Verbose , Loading image : C:\ProgramData\MediaBrowser\ImageCache\dab2146b-5490-6750-d0ae-beaf626bb6e1.jpg ,  , 1 , Application

4:10:08.783 PM 13/9/2009 , Info , Full Library Validation took 6777 milliseconds. ,  , 12 ,

4:10:08.789 PM 13/9/2009 , Info , Metadata changed for the following item Video (first pass : True forced via UI : False) ,  , 12 ,


A bit confusing, seems to be bitching about the XML file settings?

I am running Windows 7 RTM

Hope this helps.

Art
artbatista
 
Posts: 27
Joined: Sat Aug 02, 2008 9:55 pm

Re: Music and iTunes Library Plugin Setup details

Postby jcalton88 » Sun Sep 13, 2009 5:37 pm

Take out the quotations around the directory path. Either the quotations are in the code or are not needed in .Net because it will mess up the path.

And you should not get the "plug-in could not start" on first run, it should actually tell you it was the first run and the .XML has been created.

Copy your library.xml to the root to get rid of any variables(wrong spelling, wrong directory, wrong syntax) and direct the xml to that copy, for ease I named mine "C:\library.xml"

Try to load MB again.
jcalton88
 
Posts: 466
Joined: Thu Jul 02, 2009 7:33 am

Re: Music and iTunes Library Plugin Setup details

Postby artbatista » Sun Sep 13, 2009 5:52 pm

Jcalton88:

Did as you suggested, copied library file to c:\library.xml and edited the plugin xml file as follows:

<?xml version="1.0"?>
<Settings>
<Setting ShowGenreIniTunesLibrary="True" />
<Setting ShowArtistIniTunesLibrary="True" />
<Setting LoadiTunesLibrary="True" />
<Setting iTunesLibraryXMLPath="c:\Library.xml" />
<Setting RefreshiTunesLibrary="True" />
<Setting iTunesVirtualFolderName="Music" />
<Setting LoadNormalMusicLibrary="false" />
<Setting MusicMBFolderName="Music Library" />
<Setting MusicPath="C:\music" />
<Setting InitialPath="C:\ProgramData\MediaBrowser\StartupFolder\..\ImageCache" />
<Setting SongImage="" />
<Setting ShowPlaylistAsFolder="True" />
<Setting PlayListFolderName="_Playlists" />
</Settings>

Having the setting as :

<Setting iTunesLibraryXMLPath="c:\Library.xml" />

or as

<Setting iTunesLibraryXMLPath=c:\Library.xml />

did not make a difference. Still refuses to load.

Here is the log:

6:42:43.834 PM 13/9/2009 , Error , MusicPlugin ( Unhandled exception. Type=System.InvalidOperationException Msg=There is an error in XML document (2,, 2). Src=System.Xml [n] StackTrace= [n] at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,, String encodingStyle,, XmlDeserializationEvents events) [n] at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) [n] at MusicPlugin.Util.Settings.LoadSettings() [n] at MusicPlugin.Util.Settings.InitSettings(String path) [n] at MusicPlugin.Plugin.ValidateSettings(String initialFolder) ) , , 1 , Application


Bummer


Art
artbatista
 
Posts: 27
Joined: Sat Aug 02, 2008 9:55 pm

PreviousNext

Return to Feature Requests



Who is online

Users browsing this forum: No registered users and 1 guest

cron