johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.29k stars 259 forks source link

Bookmark not Working on .mobi File #1347

Closed TomAtGithub closed 12 hours ago

TomAtGithub commented 1 week ago

Describe the bug When I click on the "Add Bookmark" button in the top left corner, nothing happens.

I get the following error messages:

JS ERROR: Error: Invalid value 'undefined' for property label in object initializer.
                                         @resource:///com/github/johnfactotum/Foliate/utils.js:236:8
                                         add@resource:///com/github/johnfactotum/Foliate/annotations.js:92:21
                                         toggle@resource:///com/github/johnfactotum/Foliate/annotations.js:177:20
                                         bookmark@resource:///com/github/johnfactotum/Foliate/book-viewer.js:983:29
                                         addMethods/</<@resource:///com/github/johnfactotum/Foliate/utils.js:281:58
                                         _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

Before the are some warnings:

Theme parser error: gtk.css:5389:3-9: No property named "filder"
Theme parser error: gtk.css:6586:16-17: Expected a number
Theme parser error: gtk.css:6770:22-27: Junk at end of value for outline-width

To Reproduce Steps to reproduce the behavior:

  1. Open a '*.mobi' ebook
  2. Click on 'Add Bookmark'
  3. Checkout 'journalctl -fe'
  4. See error as described above

Expected behavior The page is added to the bookmarks tab in the sidebar

Screenshots grafik

Version:

Additional context This problem does not occur when I open a *.epub file