Updated API for Lost Depths (101035)

Orionik [08-24-22 - 03:42]
Updated API for Lost Depths (101035)
Widden "Found" column for 12Hour format
Filename
CHANGELOG
Librarian.txt
Librarian.xml
LibrarianDeprecation/LibrarianDeprecation.lua
LibrarianDeprecation/LibrarianDeprecation.txt
diff --git a/CHANGELOG b/CHANGELOG
index 6560199..67acf05 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,10 @@
 -------------------------------------------------------------------------------
 Librarian v3.0 2022-07-25
 -------------------------------------------------------------------------------
+3.3 2022-08-23
+- Updated API for Lost Depths (101035)
+- Widden "Found" column for 12Hour format
+
 3.2 2022-08-06
 - Create separate lib for deprecation in order to make eso create a second file for the save variables.

diff --git a/Librarian.txt b/Librarian.txt
index beb790d..d7d5192 100644
--- a/Librarian.txt
+++ b/Librarian.txt
@@ -1,7 +1,7 @@
 ## Title: Librarian
 ## Author: Orionik, |c4EFFF6Calia1120|r, Flamage
 ## Version: 1.0
-## APIVersion: 101034
+## APIVersion: 101035
 ## SavedVariables: Librarian_SavedVariables Librarian_SavedVariables_Backup
 ## DependsOn: LibAddonMenu-2.0 LibrarianDeprecation

diff --git a/Librarian.xml b/Librarian.xml
index 8646a00..b6893e5 100644
--- a/Librarian.xml
+++ b/Librarian.xml
@@ -27,7 +27,7 @@
                     <Anchor point="TOPLEFT" relativeTo="$(parent)" offsetX="620" offsetY="1" />
                 </Label>
                 <Label name="$(parent)Title" font="ZoFontGame" wrapMode="ELLIPSIS">
-                    <Anchor point="TOPLEFT" relativeTo="$(parent)" offsetX="200" offsetY="1" />
+                    <Anchor point="TOPLEFT" relativeTo="$(parent)" offsetX="208" offsetY="1" />
                 </Label>
             </Controls>
         </Button>
@@ -85,7 +85,7 @@
                                 ZO_SortHeader_Initialize(self, GetString(LIBRARIAN_SORT_TYPE_FOUND), "timeStamp", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                             </OnInitialized>
                             <Anchor point="TOPLEFT" relativeTo="$(parent)Unread" relativePoint="TOPRIGHT" />
-                            <Dimensions x="130" y="32" />
+                            <Dimensions x="138" y="32" />
                         </Control>
                         <Control name="$(parent)WordCount" inherits="ZO_SortHeader">
                             <OnInitialized>
diff --git a/LibrarianDeprecation/LibrarianDeprecation.lua b/LibrarianDeprecation/LibrarianDeprecation.lua
index dc40c48..b666e62 100644
--- a/LibrarianDeprecation/LibrarianDeprecation.lua
+++ b/LibrarianDeprecation/LibrarianDeprecation.lua
@@ -339,7 +339,7 @@ function LibrarianDeprecation:UpdateSavedVariables(librarian)
                     book.medium = nil
                     book.showTitle = nil
                 else
-                    book.bookId = librarian:GetBookIdWithTitle(book.title)
+                    book.bookId = GetBookIdWithTitle(librarian, book.title)

                     local categoryIndex, collectionIndex, bookIndex = GetLoreBookIndicesFromBookId(book.bookId)
                     if categoryIndex and collectionIndex and bookIndex then -- the deprecation found a valid book, so we can erase the content of this one as well
@@ -411,7 +411,7 @@ function LibrarianDeprecation:UpdateSavedVariables(librarian)
             if characterBook.bookId then
                 characterBook.title = nil
             else
-                characterBook.bookId = librarian:GetBookIdWithTitle(characterBook.title)
+                characterBook.bookId = GetBookIdWithTitle(librarian, characterBook.title)

                 local categoryIndex, collectionIndex, bookIndex = GetLoreBookIndicesFromBookId(characterBook.bookId)
                 if categoryIndex and collectionIndex and bookIndex then -- the deprecation found a valid book, so we can erase the content of this one as well
diff --git a/LibrarianDeprecation/LibrarianDeprecation.txt b/LibrarianDeprecation/LibrarianDeprecation.txt
index 64c0408..43834e3 100644
--- a/LibrarianDeprecation/LibrarianDeprecation.txt
+++ b/LibrarianDeprecation/LibrarianDeprecation.txt
@@ -2,7 +2,7 @@
 ## Description: Store the save of "Librarian" before version 3 in a different file to avoid getting a save too big
 ## Author: Orionik
 ## Version: 1.0
-## APIVersion: 101034
+## APIVersion: 101035
 ## SavedVariables: LibrarianDeprecation_SavedVariables_Backup
 ## DisableSavedVariablesAutoSaving: 1
 ## IsLibrary: true