View Single Post
Old 01-16-2021, 12:01 AM   #868
frailtyy
Member
frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.frailtyy ought to be getting tired of karma fortunes by now.
 
frailtyy's Avatar
 
Posts: 22
Karma: 1458640
Join Date: Nov 2019
Location: PDX
Device: Kobo Libra H2O, Kindle Paperwhite
Quote:
Originally Posted by davidfor View Post
@frailtyy: That was a lot quicker than I thought.

The problem is in the line:

Code:
Highlight (yellow), Garrett:
This is used to show the start of an annotation and the type.

But, the plugin is expecting this to look like:

Code:
Highlight (yellow), Jan 25, 2013, 5:17 AM:
Which is the type and when it was created.

I don't know if this is a change in the format Goodreader uses, or if it is configurable in Goodreader. And I don't know what "Garrett" means.

I can change the plugin to handle this differently. I would still have it look for the timestamp, but, if it can't get it, then it would just use the current time.
Ah, I see what's going on. There are some settings under the "Bookmarks/Outlines/Annotations" pop-up that allow to insert author name (i.e. "Garrett"), color ("Yellow"), and timestamp. It looks like the default is color and author as of now. I've tweaked that a bit and get the following output which should be a bit more in line:

Spoiler:
Quote:
File: dotson2019chinese.pdf

Annotation summary:

--- Page 2 ---

Highlight (yellow), Oct 17, 2020 at 8:10 PM:
originated in China and focused on Hong Kong.” The company further asserted that the organizers “behind this campaign engaged in a number of deceptive tactics… to manage Pages posing as news organizations, post in Groups, disseminate their content, and also drive people to off-platform news sites… Although the people behind this activity attempted to conceal their identities, our investigation found links to individuals associated with the Chinese government”


(report generated by GoodReader)



Sent from my iPad


I am still getting an error which appears to be due to an attribute not being present from the data it's slurping down:

Spoiler:
Quote:
calibre Debug log
calibre 5.9 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 0, 0) && Annotations (1, 14, 0) && Goodreads (1, 5, 1) && Goodreads Sync (1, 15, 0) && Reading List (1, 7, 1) && Zotero Metadata Importer (1, 0, 70)
calibre 5.9 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 0, 0) && Annotations (1, 14, 0) && Goodreads (1, 5, 1) && Goodreads Sync (1, 15, 0) && Reading List (1, 7, 1) && Zotero Metadata Importer (1, 0, 70)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 108.91792294807368 x 108.85714285714285
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.41] splash screen shown
[0.41] Initializing db...
[0.42] db initialized
[0.42] Constructing main UI...
DEBUG: 0.0 Annotations plugin: Error loading libiMobileDevice. This hasn't worked for a while, and is blacklisted in calibre v3.
DEBUG: 0.0 Annotations plugin: Error is: No module named 'calibre.devices.idevice'
DEBUG: 0.0 Annotations::reader_app_support.py - loading translations
DEBUG: 0.0 Annotations::common_utils.py - loading translations
DEBUG: 0.0 Annotations::appearance.py - loading translations
DEBUG: 0.0 Annotations::config.py - loading translations
DEBUG: 0.0 Annotations::annotated_books.py - loading translations
DEBUG: 0.1 Annotations::action.py - loading translations
DEBUG: 0.0 Goodreads Sync::dialogs.py - loading translations
DEBUG: 0.0 GoodreadsSync::action.py - loading translations
DEBUG: 0.6 HttpHelper::__init__: proxy=None
[1.23] main UI initialized...
[1.23] Hiding splash screen
Starting QuickView
frailtyy is offline   Reply With Quote