|  09-17-2016, 01:06 AM | #736 | ||
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | Quote: 
 Quote: 
 | ||
|   | 
|  09-23-2016, 02:23 AM | #737 | 
| Connoisseur            Posts: 61 Karma: 1852838 Join Date: Jul 2007 Location: Russia Device: Kobo Aura H₂O & iPad Pro 2020 12.9" | 
			
			Not sure what you mean by this. I even cleaned up the app data and re-created everything from scratch, Kobo Desktop 4.0 creates the same DB as after migrating from 3.19. DbVersion is the same, the structure is mostly the same as it was since 3.17. Same content_keys, same master key generation function.
		 | 
|   | 
|  09-23-2016, 04:08 AM | #738 | |
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | Quote: 
 I changed all the KoboTouch driver and other plugins to use apsw as this uses a later SQLite library and is what calibre uses for all of it's own database access. After making the appropriate changes to Obok, the books could be seen, but the DRM could not be removed. It could for a 3.19 database on one of my devices. I can't check right now, are you sure it is the same DbVersion as 3.19? From memory, 3.19 would have been 126 or 127. 4.0 should be 129. That is what the devices use, and the desktop application is usually the same. I'll check when I get home, but there is something strange here. What OS are you using? Edit: Just looked, the version of the desktop application is 4.0.5579. The database has DbVersion of 129. And I still have 3.19 on another machine. That has DbVersion of 125. Last edited by davidfor; 09-23-2016 at 07:20 AM. | |
|   | 
|  09-23-2016, 07:11 AM | #739 | |
| Connoisseur            Posts: 61 Karma: 1852838 Join Date: Jul 2007 Location: Russia Device: Kobo Aura H₂O & iPad Pro 2020 12.9" | 
			
			Ah, I saw that, and I use very old SQLite version too, so I didn't think that was a problem. But that doesn't relate to anything but Obok. Quote: 
 Windows. | |
|   | 
|  09-23-2016, 08:53 AM | #740 | |
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | Quote: 
 But, I've just worked out what I've done wrong and the only thing I can say is        | |
|   | 
|  09-23-2016, 09:05 AM | #741 | 
| The Grand Mouse 高貴的老鼠            Posts: 74,433 Karma: 318076944 Join Date: Jul 2007 Location: Norfolk, England Device: Kindle Oasis | |
|   | 
|  09-23-2016, 09:06 AM | #742 | 
| Grand Sorcerer            Posts: 6,686 Karma: 12595249 Join Date: Jun 2009 Location: Madrid, Spain Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2 | |
|   | 
|  10-06-2016, 04:38 AM | #743 | |
| Enthusiast            Posts: 29 Karma: 13132 Join Date: Jul 2015 Location: Spain Device: Glo; Glo HD; PW2; Voyage | Quote: 
 I bought a book from Kobo and the Obok tool raised the error regarding the uncompatible or encrypted database. I tried to modify OBOK.PY file by changing 'sqlite3' by 'apsw' and 'fetchone' by 'next', but know the plugin complains about the database not containing valid keys...may I need more changes to use APSW? (I asume the keys are there, but the use os 'apsw' makes the script fail, maybe because the returned data when using 'apsw' is not the same as 'sqlite3'). Yes, I know I can install and use ADE, but I would prefer to have the obok plugin fixed. I would appreciate some guidance on what changes between 'sqlite3' and 'apsw' besides 'next' instead of 'fetchone', and 'Connection' instead of 'connect'. Thank you! | |
|   | 
|  10-06-2016, 04:46 AM | #744 | |
| eBook Enthusiast            Posts: 85,560 Karma: 93980341 Join Date: Nov 2006 Location: UK Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 | Quote: 
 Thanks. | |
|   | 
|  10-06-2016, 04:48 AM | #745 | 
| Enthusiast            Posts: 29 Karma: 13132 Join Date: Jul 2015 Location: Spain Device: Glo; Glo HD; PW2; Voyage | 
			
			OK, I was asking how to fix a script, not how to remove DRM, but I'll avoid asking again. Sorry for this. | 
|   | 
|  10-06-2016, 05:12 AM | #746 | 
| Treachery of images ...            Posts: 4,149 Karma: 94320195 Join Date: May 2012 Location: Australia Device: Sony 650, Kobo Glo, H2O, Aura One, Forma, Libra 2, Libra Colour | 
			
			Cex, a fix has been devised. We've asked apprentice harper to post it. Keep an eye out on his github site.    | 
|   | 
|  10-06-2016, 06:00 AM | #747 | 
| Enthusiast            Posts: 29 Karma: 13132 Join Date: Jul 2015 Location: Spain Device: Glo; Glo HD; PW2; Voyage | |
|   | 
|  10-06-2016, 06:17 AM | #748 | 
| eBook Enthusiast            Posts: 85,560 Karma: 93980341 Join Date: Nov 2006 Location: UK Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 | 
			
			No apologies needed!
		 | 
|   | 
|  10-06-2016, 06:33 AM | #749 | |
| Grand Sorcerer            Posts: 24,905 Karma: 47303824 Join Date: Jul 2011 Location: Sydney, Australia Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos | Quote: 
 - cursor.commit becomes cursor.execute("commit"). But removed all these as there were no actual transactions. - If there is only one column in a select statement, the result will be a value rather than an array. Last edited by davidfor; 10-06-2016 at 06:33 AM. Reason: Spelling. | |
|   | 
|  10-06-2016, 08:12 AM | #750 | |
| Enthusiast            Posts: 29 Karma: 13132 Join Date: Jul 2015 Location: Spain Device: Glo; Glo HD; PW2; Voyage | Quote: 
 Thank you so much! | |
|   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| DeDRM failure to remove DRM from a rented book? | Aquinax | Plugins | 2 | 03-24-2017 02:38 PM | 
| DeDRM Tools - confused | ChipAHoy | Reading and Management | 3 | 10-08-2016 01:16 AM | 
| Need DeDRM Tool to Remove Foreign Ebook DRM | CrossReach | Plugins | 2 | 08-04-2016 06:04 PM | 
| Shadow version of Calibre GUI with deDRM capabilities? | daviddem | Calibre | 40 | 11-07-2009 08:03 AM |