Author: jwilcox
Date: 2007-03-31 13:21:37 -0500 (Sat, 31 Mar 2007)
New Revision: 75248
Modified:
trunk/ipod-sharp/ChangeLog
trunk/ipod-sharp/src/TrackDatabase.cs
Log:
2007-03-31 James Willcox <[EMAIL PROTECTED]>
* src/TrackDatabase.cs: add support for another detail type found in
the album list.
Modified: trunk/ipod-sharp/ChangeLog
===================================================================
--- trunk/ipod-sharp/ChangeLog 2007-03-31 18:18:15 UTC (rev 75247)
+++ trunk/ipod-sharp/ChangeLog 2007-03-31 18:21:37 UTC (rev 75248)
@@ -1,3 +1,8 @@
+2007-03-31 James Willcox <[EMAIL PROTECTED]>
+
+ * src/TrackDatabase.cs: add support for another detail type found in
+ the album list.
+
2007-03-30 Aaron Bockover <[EMAIL PROTECTED]>
* src/DeviceModel.cs: Added new model types from libipoddevice (shuffle
2)
Modified: trunk/ipod-sharp/src/TrackDatabase.cs
===================================================================
--- trunk/ipod-sharp/src/TrackDatabase.cs 2007-03-31 18:18:15 UTC (rev
75247)
+++ trunk/ipod-sharp/src/TrackDatabase.cs 2007-03-31 18:21:37 UTC (rev
75248)
@@ -640,6 +640,7 @@
Misc = 100,
AlbumListAlbum = 200,
AlbumListArtist = 201,
+ AlbumListPodcastUrl = 203
}
internal enum IndexType {
@@ -684,13 +685,13 @@
Type = (DetailType) ToInt32 (body, 0);
if ((int) Type > 50 && Type != DetailType.Misc && Type !=
DetailType.LibraryIndex &&
- Type != DetailType.AlbumListArtist && Type !=
DetailType.AlbumListAlbum)
+ Type != DetailType.AlbumListArtist && Type !=
DetailType.AlbumListAlbum && Type != DetailType.AlbumListPodcastUrl)
throw new DatabaseReadException ("Unsupported detail type: " +
Type);
unknownOne = ToInt32 (body, 4);
unknownTwo = ToInt32 (body, 8);
- if ((int) Type < 50 || Type == DetailType.AlbumListArtist || Type
== DetailType.AlbumListAlbum) {
+ if ((int) Type < 50 || Type == DetailType.AlbumListArtist || Type
== DetailType.AlbumListAlbum || Type == DetailType.AlbumListPodcastUrl) {
if (Type == DetailType.PodcastUrl ||
Type == DetailType.PodcastUrl2) {
@@ -707,7 +708,7 @@
int strlen = 0;
//int strenc = 0;
- if ((int) Type < 50 || Type == DetailType.AlbumListArtist
|| Type == DetailType.AlbumListAlbum) {
+ if ((int) Type < 50 || Type == DetailType.AlbumListArtist
|| Type == DetailType.AlbumListAlbum || Type == DetailType.AlbumListPodcastUrl)
{
// 'string' mhods
strlen = ToInt32 (body, 16);
//strenc = ToInt32 (body, 20); // 0 == UTF16, 1 == UTF8
@@ -757,7 +758,8 @@
byte[] valbytes = null;
- if ((int) Type < 50 || Type == DetailType.AlbumListArtist || Type
== DetailType.AlbumListAlbum) {
+ if ((int) Type < 50 || Type == DetailType.AlbumListArtist || Type
== DetailType.AlbumListAlbum ||
+ Type == DetailType.AlbumListPodcastUrl) {
if (Type == DetailType.PodcastUrl || Type ==
DetailType.PodcastUrl2) {
valbytes = Encoding.UTF8.GetBytes (Value);
writer.Write (24 + valbytes.Length);
@@ -784,7 +786,8 @@
writer.Write (unknownOne);
writer.Write (unknownTwo);
- if ((int) Type < 50 || Type == DetailType.AlbumListArtist || Type
== DetailType.AlbumListAlbum) {
+ if ((int) Type < 50 || Type == DetailType.AlbumListArtist || Type
== DetailType.AlbumListAlbum ||
+ Type == DetailType.AlbumListPodcastUrl) {
if (Type == DetailType.PodcastUrl || Type ==
DetailType.PodcastUrl2 ||
Type == DetailType.ChapterData) {
writer.Write (valbytes);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches