03-21-2014, 12:06 AM | #451 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
My post https://www.mobileread.com/forums/sho...&postcount=441, has the exact configuration needed for calibre to create shelves for each series on the device. To quote it:
Quote:
if you want to use more than one column to specify the shelves, you simply put the names of each column in the field separated by a commas. An important thing that has not been explicitly stated is that the shelf management is one way. When you connect to calibre, it will update the shelves for all books in the calibre library and that are on the device. If you put one of these books on a shelf manually using the device, it will be changed when you connect to calibre. But, if you have books on the device that is not in the calibre library, the shelves for them will not be changed. |
|
03-22-2014, 02:21 AM | #452 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Update to Kobo Utilities plugin - V1.6.0
I have just updated version 1.6.0 of the plugin. This one has a few changes in it.
Some of these need some more explanation. Firmware check and download When this is turned on, the it will check for a firmware update once a day when the device is connected. The check uses the devices information to check for the firmware. But, there is a "early adopters" option to check using a different affiliate. This may report firmware is available earlier than with the devices option. If a firmware update is found, you will be prompted with the version and whether to download it. When the download is complete, you will be prompted again about keeping the update and disconnecting to apply the update. Finally, if update files are found when the device is connected, you will be prompted whether to keep these or not. If you choose not to keep the files, they will be removed. The firmware check can also be started from the plugin menu. Automatic backup of the device database The first time the device is connected each day, the device database is backed up. The backup file is created with the timestamp as part of the name. The name aslo includes the model and serial number. This allows for backups for multiple devices. Once the backup is done, a database integrity check is done on the file. If there is a problem, the backup file has "CORRUPT" added to the name an an error is shown. The backup can be configured for where to store the backups and how many copies to keep. After batch reading position store, display list of changes Instead of a simple prompt with how many changed reading positions there are, a list of the changes is now displayed. This shows the title, author and the current and new percent read and last reading dates. Each line has a check box. If you don't want to update the position for a book, uncheck that book. The changes are stored in the library when the "OK" button is pressed. Pressing the "Cancel" will discard all the changes. This will be displayed after the automatic store or after running a batch store. Added options for using sort versions of title and author or the plugboard when updating metadata The update metadata dialog now has options to use either the plugboard or the sort title and author. When using the plugboard, it sets the title and author to the same values used when sending the book to the device. This only updates the device database, not the book on the device. A big thank you goes to jgoguen and Terisa for their help with this release. And to my beta testers. If anyone sees any problems, please report them. I'll fix them as soon as possible. If you have suggestions for improvements to functions or new function, I'm happy to hear them. |
03-22-2014, 08:28 AM | #453 |
Grand Sorcerer
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
|
Thank you for your new version, and the update metadata with plugboard is very nice for me (and it works well), as I only want to change the title showed at the library.
|
03-22-2014, 09:34 AM | #454 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Glad you like it. I had been putting it off for a while but stumbled on some code in calibre last week and realised how easy it would be.
|
03-23-2014, 01:10 AM | #455 | |
Grand Sorcerer
Posts: 12,752
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
Code:
Directory of D:\Backup\KoboDBBackup 23/03/2014 00:03 <DIR> . 23/03/2014 00:03 <DIR> .. 22/03/2014 01:10 20,692,992 KoboReader-corrupted-KoboGlo-613A334012940-20140322-010302.sqlite 23/03/2014 00:03 14,714,880 KoboReader-corrupted-KoboGlo-613A334012940-20140323-000307.sqlite 2 File(s) 35,407,872 bytes 2 Dir(s) 3,993,944,064 bytes free By any chance could this be related to two lines in auto_backup_device_database located in action.py Code:
backup_file_template = 'KoboReader-{0}-{1}-{2}.sqlite' backup_file_template = 'KoboReader-corrupted-{0}-{1}-{2}.sqlite' |
|
03-23-2014, 01:43 AM | #456 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
03-23-2014, 01:52 AM | #457 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Update to Kobo Utilities plugin - V1.6.1
This is just to fix the naming of the automatic database backup. This was caused by leaving a line of code in that was used for debugging.
|
03-23-2014, 06:55 AM | #458 |
Pain in the arse
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
David, does your plugin create a log file when you check for db errors and you find one?
I'm also thinking about a backup utility, that creates a db backup if the db is not corrupted, and alerts you otherwise. Let me know if I can steal part of your plugin ^^ |
03-23-2014, 07:12 AM | #459 |
Grand Sorcerer
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
|
David, I've found a problem with Release 1.6. I have a reading list which sends books not in device as I connect it. It works with 1.5 but it doesn't send the books (although they're recognized) with 1.6. I've checked it.
|
03-23-2014, 07:13 AM | #460 | ||
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
03-23-2014, 07:45 AM | #461 | |
Pain in the arse
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
Quote:
I would do it in Kobo itself. I would create a little bash script that starts at boot and check the db every X hours and backup it if it's changed and not corrupted, otherwise create a log file, that should be displayed as a new book. The problem is only how to consistently check if you have to create the log file or not... Last edited by Lucas Malor; 03-23-2014 at 07:50 AM. |
|
03-23-2014, 09:07 AM | #462 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Adding a log as a book is easy, but getting it displayed on the list is a problem. You would have to trigger something to process the book and add it to the library. There has been some discussion of this but I don't think there was a satisfactory solution. |
|
03-23-2014, 09:22 AM | #463 |
Grand Sorcerer
Posts: 12,752
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Also I'm not sure that a command line sqlite tool exists on the device itself.
|
03-23-2014, 09:32 AM | #464 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
If the configuration is still correct, can you run calibre in debug mode and post the log? Or email it to me. |
|
03-28-2014, 02:04 AM | #465 |
Grand Sorcerer
Posts: 12,752
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Kobo WiFi Bug!
Just attached my WiFi and got the following error: Code:
Backing up Kobo device database DEBUG: 0.0 do_device_database_backup - start DEBUG: 0.0 do_device_database_backup - backup_file_search= KoboReader-KoboReader-00:08:54:E5:7E:EE-20140328-[0-9][0-9][0-9][0-9][0-9][0-9].sqlite DEBUG: 0.0 do_device_database_backup - backup_file_search= D:\Backup\KoboDBBackup\KoboReader-KoboReader-00:08:54:E5:7E:EE-20140328-[0-9][0-9][0-9][0-9][0-9][0-9].sqlite DEBUG: 0.0 do_device_database_backup - backup_files= [] DEBUG: 0.0 do_device_database_backup - backup_file_name=KoboReader-KoboReader-00:08:54:E5:7E:EE-20140328-010248.sqlite DEBUG: 0.0 do_device_database_backup - backup_file_path=D:\Backup\KoboDBBackup\KoboReader-KoboReader-00:08:54:E5:7E:EE-20140328-010248.sqlite DEBUG: 0.0 do_device_database_backup - database_file=K:\.kobo\KoboReader.sqlite Python function terminated unexpectedly [Errno 22] invalid mode ('wb') or filename: u'D:\\Backup\\KoboDBBackup\\KoboReader-KoboReader-00:08:54:E5:7E:EE-20140328-010248.sqlite' (Error Code: 1) Traceback (most recent call last): File "site.py", line 132, in main File "site.py", line 109, in run_entry_point File "site-packages\calibre\utils\ipc\worker.py", line 195, in main File "site-packages\calibre\utils\ipc\worker.py", line 139, in arbitrary_n File "calibre_plugins.koboutilities.jobs", line 166, in do_device_database_backup File "shutil.py", line 83, in copyfile IOError: [Errno 22] invalid mode ('wb') or filename: u'D:\\Backup\\KoboDBBackup\\KoboReader-KoboReader-00:08:54:E5:7E:EE-20140328-010248.sqlite' |
Tags |
calibre, kobo, kobo utilities, kobo-utilities, plugins |
|
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 |