banshee r3920 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Base



Author: abock
Date: Thu May 15 00:40:40 2008
New Revision: 3920
URL: http://svn.gnome.org/viewvc/banshee?rev=3920&view=rev

Log:
2008-05-14  Aaron Bockover  <abock gnome org>

    * src/Core/Banshee.Core/Banshee.Base/FileNamePattern.cs: Added %year%
    from stable



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Core/Banshee.Base/FileNamePattern.cs

Modified: trunk/banshee/src/Core/Banshee.Core/Banshee.Base/FileNamePattern.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Core/Banshee.Base/FileNamePattern.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Core/Banshee.Base/FileNamePattern.cs	Thu May 15 00:40:40 2008
@@ -99,6 +99,11 @@
                     return Escape (t == null ? (string)r : t.DisplayTrackTitle);
             });
              
+            AddConversion ("year", Catalog.GetString ("Year"),  
+                delegate (ITrackInfo t, object r) {
+                    return String.Format ("{0}", t == null ? (int)r : t.Year);
+            });
+             
             AddConversion ("track_count", Catalog.GetString ("Count"),  
                 delegate (ITrackInfo t, object r) {
                     return String.Format ("{0:00}", t == null ? (int)r : t.TrackCount);
@@ -144,6 +149,7 @@
         private static string [] suggested_folders = new string [] {
             DefaultFolder,
             "%artist%%path_sep%%artist% - %album%",
+            "%artist%%path_sep%%album% (%year%)",
             "%artist% - %album%",
             "%album%",
             "%artist%"



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