Open GreyAsteroid opened 10 months ago
I'm new to javascript so forgive me for any of my misunderstandings but it looks like toAidoku takes a Uint8Array of a backup.proto file, converts it, and exports it as AidokuBackup inside AidokuResult.
Then for toTachiyomi it takes an AidokuBackup, converts it, and exports it as a Uint8Array inside AidokuResult.
AidokuBackup seems to match the format laid out in the Aidoku Backup.swift file but supplying the aib file to the toTachiyomi function results in a "Cannot read properties of undefined (reading 'map')" error.
While I've managed to use this to convert a Tachiyomi backup proto file to an Aidoku backup, I've been unable to manage the inverse. It seems simply calling Tachidoku.toTachiyomi in place of Tachidoku.toAidoku doesn't work 😅. I was wondering if you could provide some guidance no how this function works.