banshee r3359 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.PlayerMigration



Author: scottp
Date: Sat Mar  1 03:05:30 2008
New Revision: 3359
URL: http://svn.gnome.org/viewvc/banshee?rev=3359&view=rev

Log:
* src/Core/Banshee.Services/Banshee.PlayerMigration/AmarokPlayerImportSource.cs:
  Fixed warnings.

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Services/Banshee.PlayerMigration/AmarokPlayerImportSource.cs

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.PlayerMigration/AmarokPlayerImportSource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.PlayerMigration/AmarokPlayerImportSource.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.PlayerMigration/AmarokPlayerImportSource.cs	Sat Mar  1 03:05:30 2008
@@ -137,23 +137,7 @@
                          string artist = (string) reader[3];
                          
                          // the following fields are not critical and can be skipped if something goes wrong
-                         string genre = reader[4] as string;
-                         string album = reader[5] as string;
-                         int year = 0, rating = 0, playcount = 0;
-                         uint track_number = 0;
-                         TimeSpan duration = TimeSpan.Zero;
-
-                         try {
-                             year = Int32.Parse ((string) reader[6]);
-                         } catch (Exception) {}
-
-                         try {
-                             track_number = Convert.ToUInt32 ((long) reader[7]);
-                         } catch (Exception) {}
-
-                         try {
-                             duration = TimeSpan.FromSeconds ((int) reader[8]);
-                         } catch (Exception) {}
+                         int rating = 0, playcount = 0;
 
                          // Try to read stats
                          try {
@@ -203,7 +187,7 @@
                      reader.Close ();
                      conn.Close ();
                  } catch (Exception) {}
-            } catch (Exception e) {
+            } catch (Exception) {
                 LogError (library_path, "Importing from Amarok database failed");
             }
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]