Author: jwilcox
Date: 2006-10-18 18:11:45 -0400 (Wed, 18 Oct 2006)
New Revision: 66807

Modified:
   trunk/daap-sharp/ChangeLog
   trunk/daap-sharp/src/Client.cs
Log:
2006-10-18  James Willcox  <[EMAIL PROTECTED]>

        * src/Client.cs: don't fetch the content codes until Login(), as
        apparently iTunes protects that url with a password (if enabled)



Modified: trunk/daap-sharp/ChangeLog
===================================================================
--- trunk/daap-sharp/ChangeLog  2006-10-18 22:10:25 UTC (rev 66806)
+++ trunk/daap-sharp/ChangeLog  2006-10-18 22:11:45 UTC (rev 66807)
@@ -1,3 +1,8 @@
+2006-10-18  James Willcox  <[EMAIL PROTECTED]>
+
+       * src/Client.cs: don't fetch the content codes until Login(), as
+       apparently iTunes protects that url with a password (if enabled)
+
 2006-10-02  James Willcox  <[EMAIL PROTECTED]>
 
        * src/content-codes: updated, includes new codes found in iTunes 7.0

Modified: trunk/daap-sharp/src/Client.cs
===================================================================
--- trunk/daap-sharp/src/Client.cs      2006-10-18 22:10:25 UTC (rev 66806)
+++ trunk/daap-sharp/src/Client.cs      2006-10-18 22:11:45 UTC (rev 66807)
@@ -87,7 +87,6 @@
             this.port = port;
             fetcher = new ContentFetcher (address, port);
 
-            bag = ContentCodeBag.ParseCodes (fetcher.Fetch ("/content-codes"));
 
             ContentNode node = ContentParser.Parse (ContentCodeBag.Default, 
fetcher.Fetch ("/server-info"));
             serverInfo = ServerInfo.FromNode (node);
@@ -123,6 +122,8 @@
             fetcher.Password = password;
 
             try {
+                bag = ContentCodeBag.ParseCodes (fetcher.Fetch 
("/content-codes"));
+
                 ContentNode node = ContentParser.Parse (bag, fetcher.Fetch 
("/login"));
                 ParseSessionId (node);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to