Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-28-2011, 02:35 PM   #16
nephtys59
Junior Member
nephtys59 began at the beginning.
 
nephtys59's Avatar
 
Posts: 8
Karma: 10
Join Date: Feb 2011
Device: Kindle 3
Thanks for the update, I tested it on a couple of books and it worked fine.
I'll test it further in the next few days and let you know if I find bugs.
Thanks again so much for this plugin!
nephtys59 is offline   Reply With Quote
Old 09-16-2011, 08:40 AM   #17
dave9000
Junior Member
dave9000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2010
Location: Italy
Device: SONY PRS-650, IREX ILIAD
There's a small problem with character encoding (windows-1252).
E.g. this sentence:
"... uno dei piß¹ famosi scrittori ..."
should be
"... uno dei pi¨ famosi scrittori ..."

It looks like the original text is encoded TWICE with UTF-8.
Thanks for the useful plugin anyway!

P.S. the following patch in worker.py seems to fix the issue:
OLD: raw = raw.decode('windows-1252', errors='replace')
NEW: raw = raw.decode('utf-8', errors='replace')

Last edited by dave9000; 09-16-2011 at 01:27 PM.
dave9000 is offline   Reply With Quote
Old 09-16-2011, 05:26 PM   #18
Pr.BarnArt
Groupie
Pr.BarnArt began at the beginning.
 
Pr.BarnArt's Avatar
 
Posts: 154
Karma: 34
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad2
Quote:
Originally Posted by dave9000 View Post
There's a small problem with character encoding (windows-1252).
E.g. this sentence:
"... uno dei piß¹ famosi scrittori ..."
should be
"... uno dei pi¨ famosi scrittori ..."

It looks like the original text is encoded TWICE with UTF-8.
Thanks for the useful plugin anyway!

P.S. the following patch in worker.py seems to fix the issue:
OLD: raw = raw.decode('windows-1252', errors='replace')
NEW: raw = raw.decode('utf-8', errors='replace')
Thx. I will do a check .
Can you give me title and writer please.
Do you use anobii or bol-it as source?
Pr.BarnArt is offline   Reply With Quote
Old 09-16-2011, 06:07 PM   #19
dave9000
Junior Member
dave9000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2010
Location: Italy
Device: SONY PRS-650, IREX ILIAD
Try e.g.:
"Le Case Di Iszm" by "Jack Vance"

I find 4 encoding errors in the description:
nell'impossibilit├ (nell'impossibilitÓ)
perch├ę (perchŔ)
C'├Ę (c'Ŕ)
per├▓ (per˛)

I used anobii.
dave9000 is offline   Reply With Quote
Old 09-25-2011, 02:48 PM   #20
Pr.BarnArt
Groupie
Pr.BarnArt began at the beginning.
 
Pr.BarnArt's Avatar
 
Posts: 154
Karma: 34
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad2
There is a new update available: 0.3.0BETA!!
(see the startpage of this topic)

Quote:
Originally Posted by dave9000 View Post
There's a small problem with character encoding (windows-1252).
the following patch in worker.py seems to fix the issue:
OLD: raw = raw.decode('windows-1252', errors='replace')
NEW: raw = raw.decode('utf-8', errors='replace')
Hey Dave, thanks for your reply.
I changed the the decoding for anobii(now utf-8), and didnot change the decoding for bol.it ( windows-1252).
Just because of the diacritics I changed them both to windows-1252 in the previous version 0.2.0.

Diactritics gives a lot of problems and they are not easy to handle. Also because I don't have many references to check, I am dependent of the booktitles and author names that are given to me. So please check and stay replying . References are always welcome.
Pr.BarnArt is offline   Reply With Quote
Old 09-27-2011, 03:28 PM   #21
dave9000
Junior Member
dave9000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2010
Location: Italy
Device: SONY PRS-650, IREX ILIAD
Thanks for the update!
I tested it with "Iain M. Banks - Pensa a fleba".
This title is listed in both anobii and bol: the comments are retrieved correctly from both sites.

By the way, it would be nice, in a future update, to skip the downloading of the default cover from bol.
At the moment I just run a script that removes the cover.jpg files with a size of 15941 bytes: I guess there should be a clever way to do that ;-)
dave9000 is offline   Reply With Quote
Old 09-29-2011, 02:54 PM   #22
Pr.BarnArt
Groupie
Pr.BarnArt began at the beginning.
 
Pr.BarnArt's Avatar
 
Posts: 154
Karma: 34
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad2
Quote:
Originally Posted by dave9000 View Post
By the way, it would be nice, in a future update, to skip the downloading of the default cover from bol.
At the moment I just run a script that removes the cover.jpg files with a size of 15941 bytes: I guess there should be a clever way to do that ;-)
At bol.it there is no default name for the default cover. We have to look at its size. Please give me a title/.athor with the default cover, so I can take a look at it.
Pr.BarnArt is offline   Reply With Quote
Old 09-30-2011, 03:16 PM   #23
dave9000
Junior Member
dave9000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2010
Location: Italy
Device: SONY PRS-650, IREX ILIAD
Try:
"Marion Zimmer Bradley - La Signora Delle Tempeste"
"Arthur C. Clarke - Culla"
dave9000 is offline   Reply With Quote
Old 10-05-2011, 01:23 PM   #24
Pr.BarnArt
Groupie
Pr.BarnArt began at the beginning.
 
Pr.BarnArt's Avatar
 
Posts: 154
Karma: 34
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad2
Quote:
Originally Posted by dave9000 View Post
By the way, it would be nice, in a future update, to skip the downloading of the default cover from bol.
At the moment I just run a script that removes the cover.jpg files with a size of 15941 bytes: I guess there should be a clever way to do that ;-)
I did some testing, but I dont get the size of the cover by headers.
THe next step would be the same as you do, looking at the size of the downloaded no-cover.jpg, i.c. 9361 (using culla)
The properties of the no-cover-image says: 9.024 bytes and size on disk:12.288 bytes.

I can filter out images of that size (including other images of the same size).
But I still doubt if that will work, because you are talking about a size of 15941. That could imply that there are different sizes of the no-cover available image.

BTW culla has a no-cover, but the other title you gave returned a real cover .
Do you know some more titles?
Attached Thumbnails
Click image for larger version

Name:	cover.jpg
Views:	76
Size:	8.8 KB
ID:	77380  

Last edited by Pr.BarnArt; 10-05-2011 at 06:15 PM.
Pr.BarnArt is offline   Reply With Quote
Old 10-05-2011, 04:41 PM   #25
dave9000
Junior Member
dave9000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2010
Location: Italy
Device: SONY PRS-650, IREX ILIAD
Hi,
have a look in attachment at the cover.jpg that I get from bol for these titles:

Bernard Blanc - Bad Chili
Brigitte Aubert - I Diari Di Casa March
Carlo Bini - Manoscritto Di Un Prigioniero
Clive Barker - Abarat
David Baldacci - The Camel Club
Emily Bronte - Cime Tempestose
J. G. Ballard - Millennium People
Marion Zimmer Bradley - Dark Satanic
Neal Barrett - Aldair in Albion
Ray Bradbury - Morte a Venice
Robert Bloch - La Sciarpa
Stableford Brian - Il Risveglio Dei Creatori
Umberto Boccioni - Taccuini Futuristi
William P. Blatty - Gemini Killer

Maybe the bol server tries to guess the language of the client browser and returns a localized default cover ...
Attached Thumbnails
Click image for larger version

Name:	cover.jpg
Views:	80
Size:	15.6 KB
ID:	77379  
dave9000 is offline   Reply With Quote
Old 10-17-2011, 01:49 PM   #26
Pr.BarnArt
Groupie
Pr.BarnArt began at the beginning.
 
Pr.BarnArt's Avatar
 
Posts: 154
Karma: 34
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad2
Hey Dave,

Sorry it took that long, but it was holidaytime for me.
I made some changes to the plugin for you to test.
It skips covers with a size of 9361.
in the configuration of the plugin you can set an extra size, that also will be skipped.

Just install this one (0.3.1.a) from file, then start calibre again in a doscommand window(cmd) with: calibre-debug -g

When you use the plugin this way the dos-window shows you the size that is set in the configuration file and the actual size of the current image.
If your 'no-image-available'-image size is different from 9361 then put that size in the configuration field.


I dont know if there are different sizes, so lets find out.
Attached Files
File Type: zip anobii.0.3.1.a.zip (11.6 KB, 79 views)

Last edited by Pr.BarnArt; 10-17-2011 at 06:41 PM.
Pr.BarnArt is offline   Reply With Quote
Old 10-23-2011, 03:07 PM   #27
dave9000
Junior Member
dave9000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2010
Location: Italy
Device: SONY PRS-650, IREX ILIAD
Working perfectly, thanks!
dave9000 is offline   Reply With Quote
Old 11-13-2011, 08:00 PM   #28
Pr.BarnArt
Groupie
Pr.BarnArt began at the beginning.
 
Pr.BarnArt's Avatar
 
Posts: 154
Karma: 34
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad2
Quote:
Originally Posted by dave9000 View Post
Working perfectly, thanks!
Hey, what is the size you are using? Or sizes.
Pr.BarnArt is offline   Reply With Quote
Old 11-19-2011, 03:55 AM   #29
dave9000
Junior Member
dave9000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2010
Location: Italy
Device: SONY PRS-650, IREX ILIAD
version 0.3.1.a works correctly with the default size you put into it, I tought that it was 15941 ...
dave9000 is offline   Reply With Quote
Old 11-20-2011, 06:58 AM   #30
Pr.BarnArt
Groupie
Pr.BarnArt began at the beginning.
 
Pr.BarnArt's Avatar
 
Posts: 154
Karma: 34
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad2
@Dave9000
Default size is 9361 and the extra size option is set to 0 by default.
So if you did not set the extra size, the plugin doesnot use the size 15941.
So, in that case the extra option is not needed.
Thanks for your reply
Pr.BarnArt is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Metadata Source Plugin] FictionDB kiwidude Plugins 34 Yesterday 08:36 PM
[Metadata Source Plugin] Goodreads kiwidude Plugins 212 08-30-2014 04:21 PM
[Metadata Source Plugin] ADLIBRIS_DK (DK) Pr.BarnArt Plugins 1 08-03-2014 01:41 PM
[Metadata Source Plugin] BIBLIOETECA biblioeteca Plugins 3 10-18-2012 04:42 AM
[Metadata Source Plugin] Antikvarium.hu kloon Plugins 3 10-17-2012 11:11 AM


All times are GMT -4. The time now is 09:41 AM.


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