Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 05-12-2024, 07:24 AM   #2911
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,393
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by aleyx View Post
My current workaround is to convert to .kepub and use the precise page numbering to make sure not to actually close the book. It technically works, but I now have to deal with all my books staying at 99% read, making it hard to know which books I've actually finished...

I know that this plugin's original author is no longer with us, but I wanted to know whether someone else was working on an enhancement for this particular issue, before I fire up PyCharm and start tinkering on it myself? Or maybe a better workaround/workflow?
Sorry, but I don't get exactly which "enhancement" you expect or which is the real issue? Resetting the book? 99% not marked as Finished in the ebook? 99% not marked as finished in calibre?
Terisa de morgan is offline   Reply With Quote
Old 05-12-2024, 09:18 AM   #2912
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Quote:
Originally Posted by Terisa de morgan View Post
Sorry, but I don't get exactly which "enhancement" you expect or which is the real issue? Resetting the book? 99% not marked as Finished in the ebook? 99% not marked as finished in calibre?
Ideally I would like to let the Kobo mark a book as "Finished" as normal, and if/when it gets updated I would like the book (on the Kobo) to be set as "Unread", and the reading progression set to the first updated chapter. Or alternatively, set the reading progression to the last page if a book is set to "Finished".

Curently the out-of-the-box workflow for a Kobo when reading a serial is (as I understand it):

1) Upload a new book on the Kobo. Read the book until its end: The Kobo reclasses it as "Finished" (this is good). Reading progression is reset (this is not so good).
2) Connect the Kobo to Calibre: column "% read" is set to 100, column "reading location" to "OEBPS/cover.xhtml".
3) The book is updated with new chapters (by FFF or othe means): Use Kobo Utilities to resend the book to the Kobo, then update the ToC.
4) On the Kobo: the updated book is still marked as "Finished" (fair enough), reading progression is still reset: not good, since now I have to check the beginning of the last few chapters and try to remember which one I've read and which I haven't yet.

My workaround right now is to just not "finish" the book and keep the reading progression alive at the very last page.

Pro: I can continue reading where I left off whenever new chapters are added, which is my main concern.
Con: Every book on my Kobo is at 99% progression. Any updated book is therefore lost in a sea of unfinished books. I could manually move the books I "finish" to a custom collection and back again, but... Yeah, no. You don't do library management when you finish a book. You either open another one or you close your book and go to sleep.


FFF's ability to "mark" new chapters is useful, but only if you manage to read every new chapter before the next update. It has no concept of reading progression (it's not its job anyways).

Kobo Utilities' ability to set a reading position is useful, but only if this reading position is known to Calibre. In this usecase, I would have to pause my reading at the last page, connect to Calibre and save the position, unplug and "finish" the book, and restore position when I update the book. Many manipulations, feasible for one book at a time but in practice I follow many, many webseries.

N.
aleyx is offline   Reply With Quote
Advert
Old 05-12-2024, 09:35 AM   #2913
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,393
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by aleyx View Post
on: Every book on my Kobo is at 99% progression. Any updated book is therefore lost in a sea of unfinished books.
About this... order by date, they will appear at the beginning.

Quote:
Originally Posted by aleyx View Post
I could manually move the books I "finish" to a custom collection and back again, but... Yeah, no. You don't do library management when you finish a book. You either open another one or you close your book and go to sleep.
Add a custom column that is set to a value when the book is updated, and reset when the progress reach 99%. Create a collection in Kobo based on this custom column. You don't do any manual process here, and you have a collection with the books you've changed.
Terisa de morgan is offline   Reply With Quote
Old 05-12-2024, 11:50 AM   #2914
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Quote:
Originally Posted by Terisa de morgan View Post
About this... order by date, they will appear at the beginning.
The Kobo Clara proposes sorting by "recent" (which is the "last opened" date) or "Date added". Neither is the update datetime. I've tried to look for a way to set the "date added" to the update date, but haven't found any yet.

Quote:
Originally Posted by Terisa de morgan View Post
Add a custom column that is set to a value when the book is updated, and reset when the progress reach 99%. Create a collection in Kobo based on this custom column. You don't do any manual process here, and you have a collection with the books you've changed.
I will try that, thanks!

N.
aleyx is offline   Reply With Quote
Old 05-12-2024, 02:05 PM   #2915
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Read this:

https://github.com/JimmXinu/FanFicFa...d-fics-to-kobo

Additionally, I use this template in a composite column. It displays fanfic chapters as currentchap/totalchap.

Code:
program:

	input = $#kobobookmark;
# Don't change this to 'count' as that's a function
	ccount = $$#chaptercount;

	if 
## Checks that a Fanfiction has a Kobo bookmark and is not anthology|oneshot
## You may want to use '$#fandomcolumn' instead of '$#booktype=='Fanfiction''
		$#booktype=='Fanfiction'
		&& 
		substr(input, 0, 10) == 'OEBPS/file'
		&& !$#fanficstatus in 'Anthology,Oneshot'
	then
## Extracts the 'current chapter' from the bookmarks, subtracts 1, and then formats them as 'currentchap/totalchap'
## You can remove the '- 1' if you want, just make sure to leave the comma.
			strcat(format_number(re(input, '.*\/file(\d+).*', '\1') - 1, '{0:,d}'), '/',ccount)

## Display 'Not Set' if there's no chapter count
	elif
		ccount == 'None'
	then
		'Not Set'

## Display regular chapter count for other books that have at least two chapters
	elif
		$#booktype=='Fanfiction' || ccount >#1
	then
		ccount
	fi

Last edited by ownedbycats; 05-12-2024 at 02:10 PM.
ownedbycats is online now   Reply With Quote
Advert
Old 05-12-2024, 03:17 PM   #2916
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Quote:
Originally Posted by ownedbycats View Post
Read this:

https://github.com/JimmXinu/FanFicFa...d-fics-to-kobo

Additionally, I use this template in a composite column. It displays fanfic chapters as currentchap/totalchap.
Thank you; I did find a previous version of your composite in my research (that one didn't have the "Not Set" part), and I adapted it. However it seems to only work for books you are currently reading: if you finished it, the current chapter becomes "OEBPS/cover.xhtml" instead of "OEBPS/file####.xtml" and breaks the template.

This Clara BW of mine is my first Kobo though; maybe previous devices/firmware had a different behaviour regarding reading position?

Your column is actually the reason I wanted to start tinkering with the plugin, starting by adding a custom column for the current number of chapters as per the Kobo database rather than the filename, and why I first asked if someone else was already thinking about it.

N.
aleyx is offline   Reply With Quote
Old 05-12-2024, 03:22 PM   #2917
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
What I do is leave it at 99% on the Kobo. Then in Calibre I deliberately change it to 100% and then restore the bookmark to device (setting reading status). This keeps the current reading position.
ownedbycats is online now   Reply With Quote
Old 05-12-2024, 03:29 PM   #2918
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
If you want, try this Action Chain while your device is connected. I use it myself.

You'll want to check the template in the single-field edit action and update the columns to your own.

Code:
program:
	input = $#kobobookmark;
	status = $#fanficstatus;
	percent = $$#percentread;

	if 
		'(In-Progress|Dormant)' in status 
		&& percent ==# 99
	then
		a = re(input, '^OEBPS/file(\d{4})(\.xhtml.*$)', '\1');
 		strcat('OEBPS/file', format_number(add(a, 1), '04d'), '.xhtml#kobo.1.1')
	else 
		input
	fi
Make sure not to open the book on device before the next update, it'll reset to the beginning.
Attached Files
File Type: zip FanficAsRead.zip (3.8 KB, 57 views)

Last edited by ownedbycats; 05-12-2024 at 07:00 PM.
ownedbycats is online now   Reply With Quote
Old 05-13-2024, 02:14 PM   #2919
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Quote:
Originally Posted by ownedbycats View Post
If you want, try this Action Chain while your device is connected. I use it myself.
I didn't know about Action Chains! Oh, this is going to be fun, thanks!

N.
aleyx is offline   Reply With Quote
Old 05-19-2024, 07:53 AM   #2920
grimorie
Member
grimorie began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2017
Device: Kobo Clara HD
Is anyone else getting error messages when uploading or updating their books or fanfic?

Do I need to do another hard reset?

Quote:
calibre, version 7.10.0
ERROR: Unhandled exception: <b>CorruptError</b>:CorruptError: database disk image is malformed

calibre 7.10 embedded-python: True
macOS-14.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '23.0.0', 'Darwin Kernel Version 23.0.0: Fri Sep 15 14:42:42 PDT 2023; root:xnu-10002.1.13~1/RELEASE_X86_64')
Python 3.11.5
OSX: ('14.0', ('', '', ''), 'x86_64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 10, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 10, 0) && Count Pages (1, 13, 6) && EpubMerge (2, 18, 0) && FanFicFare (4, 34, 1) && Generate Cover (2, 3, 4) && KFX metadata reader (from KFX Input) (2, 10, 0) && From KFX (2, 10, 0) && KFX Input (2, 10, 0) && Kobo Utilities (2, 16, 13) && KoboTouchExtended (3, 6, 7) && Obok DeDRM (10, 0, 9) && Reading List (1, 15, 4)
Traceback (most recent call last):
File "calibre_plugins.koboutilities.action", line 5366, in update_book_toc_on_device
self._get_chapter_status(db, books)
File "calibre_plugins.koboutilities.action", line 5547, in _get_chapter_status
book['kobo_database_chapters'] = self._get_database_chapters(connection, book['ContentID'], book['kobo_format'], 899)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.koboutilities.action", line 5651, in _get_database_chapters
for row in cursor:
File "src/cursor.c", line 240, in resetcursor
apsw.CorruptError: CorruptError: database disk image is malformed
grimorie is offline   Reply With Quote
Old 05-19-2024, 08:50 AM   #2921
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 385
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
I've been getting several "database disk image is malformed" errors lately with three different Kobos.

Don't really know why.
paulfiera is offline   Reply With Quote
Old 05-19-2024, 02:04 PM   #2922
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,543
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by grimorie View Post
Is anyone else getting error messages when uploading or updating their books or fanfic?

Do I need to do another hard reset?
Quote:
Originally Posted by paulfiera View Post
I've been getting several "database disk image is malformed" errors lately with three different Kobos.

Don't really know why.
Firmware issue. I just made a thread about it:

https://www.mobileread.com/forums/sh...79#post4425079
ownedbycats is online now   Reply With Quote
Old 05-19-2024, 06:30 PM   #2923
rafakobofan
Junior Member
rafakobofan began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2018
Device: Kobo H20 2
Hi, after installing the plugin in calibre 7, I can't see the option for changing metadata in the menu...
Any thing I did wrong?
Thanks.
rafakobofan is offline   Reply With Quote
Old 05-19-2024, 09:03 PM   #2924
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,516
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by rafakobofan View Post
Hi, after installing the plugin in calibre 7, I can't see the option for changing metadata in the menu...
Any thing I did wrong?
Thanks.
Are you looking at the menu with a Kobo device attached? See the attached images for unconnected and connected. Though I'm not sure what you mean by changing metadata? Sending updated metadata, yes. Editing metadata? That's done in calibre main interface.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-05-19 170259.png
Views:	73
Size:	36.3 KB
ID:	208397   Click image for larger version

Name:	Screenshot 2024-05-19 170114.png
Views:	55
Size:	34.6 KB
ID:	208398  
DNSB is offline   Reply With Quote
Old 05-20-2024, 02:27 AM   #2925
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 385
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by ownedbycats View Post
Firmware issue. I just made a thread about it:

https://www.mobileread.com/forums/sh...79#post4425079
Thanks. Very annoying issue
paulfiera is offline   Reply With Quote
Reply

Tags
calibre, kobo, kobo utilities, kobo-utilities, plugins


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Manga plugin mastertea Plugins 6 01-06-2022 03:43 AM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 06:25 AM
Kobo Utilities Plugin Question nikev Kobo Reader 10 09-26-2018 12:55 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 08:53 PM.


MobileRead.com is a privately owned, operated and funded community.