Skip to content

Commit

Permalink
修复2级以上目录
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeroblast committed Mar 31, 2021
1 parent 92d502a commit 1352ba0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
21 changes: 17 additions & 4 deletions src/Azw3File.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,22 @@ void ProcessIndex()
item.level = a[3];
if (item.level > 0)
{
item.parent = a[4];
item.fid = a[5];
item.off = a[6];
switch (a.Count)
{
case 7:
item.parent = a[4];
item.fid = a[5];
item.off = a[6];
break;
case 9:
item.parent = a[4];
item.children_start = a[5];
item.children_end = a[6];
item.fid = a[7];
item.off = a[8];
break;
}

}
else
{
Expand All @@ -290,7 +303,7 @@ void ProcessIndex()
break;
}
index_info_table.Add(item);
//Console.WriteLine($"{item.name} {item.fid} {item.off} {item.title}");
//Console.WriteLine($"name={item.name} fid={item.fid} off={item.off} parent={item.parent} {item.title}");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace UnpackKindleS
{
public class Version{public static string version="20210316";}
public class Version{public static string version="20210331";}
}

0 comments on commit 1352ba0

Please sign in to comment.