Closed DavidIQ closed 6 years ago
@DavidIQ Thanks - I have updated the code to ensure bookmarks retain original order
Thanks @AntonyCorbett I'll build and try it out later. I'm also working on adding option parameters to the cli. You accept PRs I assume?
@DavidIQ PRs are fine. Please follow the style. Thanks!
I have merged 2 jwlibrary files with bookmarks not being present for one of the two. The one with bookmarks was the iPad and the bookmarks for my Bible look like this:![2018-07-04 18 29 26](https://user-images.githubusercontent.com/186341/42295733-74caa58c-7fbb-11e8-9dc4-77a9ff99eed4.png)
On my Pixel 2 XL, which was the source of the other backup file and where there were no bookmarks for my Bible, this is the result of restoring that merged backup:![screenshot_20180704-182931](https://user-images.githubusercontent.com/186341/42295737-7fcf6738-7fbb-11e8-83d2-4ce63e680823.png)
So it looks like perhaps the way of calculating the slot number for the bookmarks needs a bit of tweaking as it almost seems random. The slot numbers seem ok in the iPad's backup:![image](https://user-images.githubusercontent.com/186341/42295798-152fc00c-7fbc-11e8-8ab8-3ff9fc2032a7.png)