Author: bnickel
Date: 2007-06-20 14:53:22 -0400 (Wed, 20 Jun 2007)
New Revision: 80346

Modified:
   trunk/taglib-sharp/ChangeLog
   trunk/taglib-sharp/src/TagLib/Ape/Tag.cs
   trunk/taglib-sharp/src/TagLib/Id3v1/Tag.cs
   trunk/taglib-sharp/src/TagLib/Id3v2/Tag.cs
   trunk/taglib-sharp/src/TagLib/Ogg/XiphComment.cs
   trunk/taglib-sharp/src/TagLib/Riff/DivXTag.cs
   trunk/taglib-sharp/src/TagLib/Riff/MovieIdTag.cs
   trunk/taglib-sharp/src/TagLib/Tag.cs
Log:
2007-06-20  Brian Nickel <[EMAIL PROTECTED]>

        * src/TagLib/Id3v1/Tag.cs: Rework to match Picard specs.
        
        * src/TagLib/Riff/DivXTag.cs: Rework to match Picard specs.
        
        * src/TagLib/Riff/MovieIdTag.cs: Rework to match Picard specs.
        
        * src/TagLib/Id3v2/Tag.cs: Rework to match Picard specs.
        
        * src/TagLib/Ape/Tag.cs: Rework to match Picard specs.
        
        * src/TagLib/Ogg/XiphComment.cs: Rework to match Picard specs.

        * src/TagLib/Tag.cs: Added JoinedAlbumArtists and FirstAlbumArtist.
        Changed JoinedArtists and FirstArtist to point to Performers (marked as
        obsolete), and added Artists which points to Performers (also obsolete).
        This should aleviate confusion.


Modified: trunk/taglib-sharp/ChangeLog
===================================================================
--- trunk/taglib-sharp/ChangeLog        2007-06-20 18:20:19 UTC (rev 80345)
+++ trunk/taglib-sharp/ChangeLog        2007-06-20 18:53:22 UTC (rev 80346)
@@ -1,3 +1,22 @@
+2007-06-20  Brian Nickel <[EMAIL PROTECTED]>
+
+       * src/TagLib/Id3v1/Tag.cs: Rework to match Picard specs.
+       
+       * src/TagLib/Riff/DivXTag.cs: Rework to match Picard specs.
+       
+       * src/TagLib/Riff/MovieIdTag.cs: Rework to match Picard specs.
+       
+       * src/TagLib/Id3v2/Tag.cs: Rework to match Picard specs.
+       
+       * src/TagLib/Ape/Tag.cs: Rework to match Picard specs.
+       
+       * src/TagLib/Ogg/XiphComment.cs: Rework to match Picard specs.
+
+       * src/TagLib/Tag.cs: Added JoinedAlbumArtists and FirstAlbumArtist.
+       Changed JoinedArtists and FirstArtist to point to Performers (marked as
+       obsolete), and added Artists which points to Performers (also obsolete).
+       This should aleviate confusion.
+       
 2007-06-12  Brian Nickel <[EMAIL PROTECTED]>
 
        * src/TagLib/Mpeg4/File.cs: Fix support for writing files that don't 

Modified: trunk/taglib-sharp/src/TagLib/Ape/Tag.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Ape/Tag.cs    2007-06-20 18:20:19 UTC (rev 
80345)
+++ trunk/taglib-sharp/src/TagLib/Ape/Tag.cs    2007-06-20 18:53:22 UTC (rev 
80346)
@@ -74,12 +74,12 @@
       {
          get
          {
-            Item item = GetItem ("ARTIST");
+            Item item = GetItem ("ALBUM ARTIST");
             return item != null ? item.ToStringArray () : new string [] {};
          }
          set
          {
-            SetValue ("ARTIST", value);
+            SetValue ("ALBUM ARTIST", value);
          }
       }
       
@@ -87,12 +87,12 @@
       {
          get
          {
-            Item item = GetItem ("PERFORMER");
+            Item item = GetItem ("ARTIST");
             return item != null ? item.ToStringArray () : new string [] {};
          }
          set
          {
-            SetValue ("PERFORMER", value);
+            SetValue ("ARTIST", value);
          }
       }
       

Modified: trunk/taglib-sharp/src/TagLib/Id3v1/Tag.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Id3v1/Tag.cs  2007-06-20 18:20:19 UTC (rev 
80345)
+++ trunk/taglib-sharp/src/TagLib/Id3v1/Tag.cs  2007-06-20 18:53:22 UTC (rev 
80346)
@@ -130,7 +130,7 @@
          set {title = value != null ? value.Trim () : String.Empty;}
       }
       
-      public override string [] AlbumArtists
+      public override string [] Performers
       {
          get {return new string [] {artist};}
          set {artist = (new StringCollection (value)).ToString (",").Trim ();}

Modified: trunk/taglib-sharp/src/TagLib/Id3v2/Tag.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Id3v2/Tag.cs  2007-06-20 18:20:19 UTC (rev 
80345)
+++ trunk/taglib-sharp/src/TagLib/Id3v2/Tag.cs  2007-06-20 18:53:22 UTC (rev 
80346)
@@ -184,7 +184,7 @@
       {
          get
          {
-            TextInformationFrame f = TextInformationFrame.Get (this, 
FrameType.TPE1);
+            TextInformationFrame f = TextInformationFrame.Get (this, 
FrameType.TPE2);
             return f == null ? new string [] {} : f.FieldList.ToArray ();
          }
          set
@@ -197,7 +197,7 @@
       {
          get
          {
-            TextInformationFrame f = TextInformationFrame.Get (this, 
FrameType.TPE2);
+            TextInformationFrame f = TextInformationFrame.Get (this, 
FrameType.TPE1);
             return f == null ? new string [] {} : f.FieldList.ToArray ();
          }
          set

Modified: trunk/taglib-sharp/src/TagLib/Ogg/XiphComment.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Ogg/XiphComment.cs    2007-06-20 18:20:19 UTC 
(rev 80345)
+++ trunk/taglib-sharp/src/TagLib/Ogg/XiphComment.cs    2007-06-20 18:53:22 UTC 
(rev 80346)
@@ -203,14 +203,14 @@
       
       public override string [] AlbumArtists
       {
-         get {return GetField ("ARTIST");}
-         set {SetField ("ARTIST", value);}
+         get {return GetField ("ALBUMARTIST");}
+         set {SetField ("ALBUMARTIST", value);}
       }
       
       public override string [] Performers
       {
-         get {return GetField ("PERFORMER");}
-         set {SetField ("PERFORMER", value);}
+         get {return GetField ("ARTIST");}
+         set {SetField ("ARTIST", value);}
       }
       
       public override string [] Composers

Modified: trunk/taglib-sharp/src/TagLib/Riff/DivXTag.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Riff/DivXTag.cs       2007-06-20 18:20:19 UTC 
(rev 80345)
+++ trunk/taglib-sharp/src/TagLib/Riff/DivXTag.cs       2007-06-20 18:53:22 UTC 
(rev 80346)
@@ -103,7 +103,7 @@
          set {title = value != null ? value.Trim () : String.Empty;}
       }
       
-      public override string [] AlbumArtists
+      public override string [] Performers
       {
          get {return new string [] {artist};}
          set {artist = (new StringCollection (value)).ToString (",").Trim ();}

Modified: trunk/taglib-sharp/src/TagLib/Riff/MovieIdTag.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Riff/MovieIdTag.cs    2007-06-20 18:20:19 UTC 
(rev 80345)
+++ trunk/taglib-sharp/src/TagLib/Riff/MovieIdTag.cs    2007-06-20 18:53:22 UTC 
(rev 80346)
@@ -53,7 +53,7 @@
          set {SetValue ("TITL", value);}
       }
       
-      public override string [] AlbumArtists
+      public override string [] Performers
       {
          get {return GetValuesAsStringCollection ("IART").ToArray ();}
          set {SetValue ("IART", value);}

Modified: trunk/taglib-sharp/src/TagLib/Tag.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Tag.cs        2007-06-20 18:20:19 UTC (rev 
80345)
+++ trunk/taglib-sharp/src/TagLib/Tag.cs        2007-06-20 18:53:22 UTC (rev 
80346)
@@ -64,15 +64,23 @@
       
       public virtual IPicture [] Pictures { get { return new Picture [] { }; } 
set { } }
       
-      public string FirstArtist    { get { return FirstInGroup(AlbumArtists);} 
}
-      public string FirstPerformer { get { return FirstInGroup(Performers);  } 
}
-      public string FirstComposer  { get { return FirstInGroup(Composers);   } 
}
-      public string FirstGenre     { get { return FirstInGroup(Genres);      } 
}
+      [Obsolete("For album artists use AlbumArtists. For track artists, use 
Performers")]
+      public virtual string [] Artists      {get {return new string [] {};} 
set {}}
       
-      public string JoinedArtists    { get { return JoinGroup(AlbumArtists);} }
-      public string JoinedPerformers { get { return JoinGroup(Performers);  } 
} 
-      public string JoinedComposers  { get { return JoinGroup(Composers);   } }
-      public string JoinedGenres     { get { return JoinGroup(Genres);      } }
+      [Obsolete("For album artists use FirstAlbumArtist. For track artists, 
use FirstPerformer")]
+      public string FirstArtist      { get { return FirstPerformer;} }
+      
+      public string FirstAlbumArtist { get { return 
FirstInGroup(AlbumArtists);} }
+      public string FirstPerformer   { get { return FirstInGroup(Performers);  
} }
+      public string FirstComposer    { get { return FirstInGroup(Composers);   
} }
+      public string FirstGenre       { get { return FirstInGroup(Genres);      
} }
+      
+      [Obsolete("For album artists use FirstAlbumArtist. For track artists, 
use FirstPerformer")]
+      public string JoinedArtists      { get { return JoinedPerformers;} }
+      public string JoinedAlbumArtists { get { return 
JoinGroup(AlbumArtists);} }
+      public string JoinedPerformers   { get { return JoinGroup(Performers);  
} } 
+      public string JoinedComposers    { get { return JoinGroup(Composers);   
} }
+      public string JoinedGenres       { get { return JoinGroup(Genres);      
} }
 
       private static string FirstInGroup(string [] group)
       {

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

Reply via email to