Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'split'` #4

Closed
arkhandir opened this issue Sep 3, 2023 · 3 comments
Closed

AttributeError: 'NoneType' object has no attribute 'split'` #4

arkhandir opened this issue Sep 3, 2023 · 3 comments
Assignees
Labels

Comments

@arkhandir
Copy link

Thank you for the script. It works fine for a few books, then I get the following error:

`Traceback (most recent call last):
File "/Users//pinotate-0.3/pinotate.py", line 44, in
main(args)
File "/Users/
/pinotate-0.3/pinotate.py", line 30, in main
worker.export_all(args)
File "/Users//pinotate-0.3/core/worker.py", line 44, in export_all
self.__export(title, args.out, args.headings, args.sort)
File "/Users/
/pinotate-0.3/core/worker.py", line 51, in __export
highlights = self.highlights(asset_id)
File "/Users//pinotate-0.3/core/worker.py", line 37, in highlights
return self.dispatcher.get_highlights(self.ann_db, asset_id)
File "/Users/
/pinotate-0.3/core/db.py", line 141, in get_highlights
chapter = int(location.split('[')[0].split('/')[2].replace(',', ''))
AttributeError: 'NoneType' object has no attribute 'split'

I’d would be happy if this could be fixed, the script seems to be the last resort to export hightlights from Apple Books.

Thank you!

@Galarius Galarius self-assigned this Sep 4, 2023
@Galarius Galarius added the bug label Sep 4, 2023
@Galarius
Copy link
Owner

Galarius commented Sep 4, 2023

@arkhandir,thank you for reporting this issue!

Galarius added a commit that referenced this issue Sep 5, 2023
@Galarius
Copy link
Owner

Galarius commented Sep 5, 2023

@arkhandir, the problem should be resolved in version 0.3.1. Please feel free to reopen the issue if it persists.

@arkhandir
Copy link
Author

Thank you for fixing it. Your tool fills a gap left by Apple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants