AntonyCorbett / JWLMerge

Utility to merge jwlibrary backup files
MIT License
194 stars 33 forks source link

Favoriten Anzeige fehlerhaft #21

Closed Peter-66 closed 4 years ago

Peter-66 commented 4 years ago

Hallo, leider ist mein Englisch sehr schlecht und ich hoffe dennoch euf eine kleine Hilfe von Euch. Ich habe seit Monaten das Problem, dass in der Favoritenanzeige meiner JW Library die Bibel (Rbi8) angezeig wird und sich nicht löschen/ausblenden lässt. (Fragt mich bitte nicht, wie sie dahin gekommen ist. Ich weiß es nicht)

Auch wenn ich den Download der Bibel als ganzes gelöscht hatte, wurde sie nach dem erneuten Download wieder unter Favoriten angezeigt.

Das gleiche Problem tritt auf, wenn ich bei einem Neuen Gerät (Android oder Windows) die Library komplett neu installiere und danach meine Sicherung einspiele. Danach wird die Rbi8 wieder in meinen Favoriten angezeigt.

Gibt es eine Möglichkeit die Sicherungsdatei zu bearbeiten und die importierten Favoriten zu bearbeiten?

Kann mir jemand helfen diesen Bug zu lösen? Aktuelle Ansicht meiner Favoriten grafik

Vielen Dank vorab

AntonyCorbett commented 4 years ago

Yes, I understand your problem. Favourites are stored in the "TagMap" table of the backup file under a "TagId" of 1. You would need to delete the row having a "Position" value of 2 (the 3rd item in your list of favourites). I could add a function to clear all favourites from a backup file - would that help?

Peter-66 commented 4 years ago

Hallo Antony, vielen Dank für die schnelle Antwort. Ich kann mit dem Programm JWLMerge die Sicherung einsehen, aber nicht editieren oder die Zeile löschen. EIne Funktion wäre hilfreich. Aber mit welchem Tool kann man die Sicherungsdatei bearbeiten?

Vielen Dank und übrigends tolle Arbeit Peter

AntonyCorbett commented 4 years ago

The backup file is actually a standard zip archive, so if you replace the ".jwlibrary" extnsion with ".zip" you can unzip its contents which should include a SQLite database file named "userData.db". You can then open this database using a SQLite client tool such as "SQLite Expert", open up the tables and make changes. When you have finsihed you'll need to put the modified userData.db file back into the archive and then rename the extension to ".jwlibrary". Of course, these steps require a little skill and care!

Peter-66 commented 4 years ago

Hello Antony, I have the Tool SQLite Client. I open the backupfile (it works good) I extract the userDB.db Start the Client and find the tables Affter that I delete the first line with the value 2 in the column "TagId" After writing back and import... there was no result. Sure, I misunderstood something I send you a picture of the first line I deleted (that was still the original) grafik

Wich line is the right one to delete?

AntonyCorbett commented 4 years ago

TagId = 1 Position = 2

Peter-66 commented 4 years ago

Just wonderful. Thanks alot. Finally, this lethal mistake is gone. You are great. I had overlooked that I have to sort the column first. Simply great. It works now

AntonyCorbett commented 4 years ago

Well done! 👍🏻