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 02-05-2015, 06:43 AM   #61
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,431
Karma: 22283078
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Trixter: I had a quick look at the files and I can see how it would be done. But, it just isn't something I'm interested in doing.
davidfor is offline   Reply With Quote
Advert
Old 03-27-2015, 03:14 AM   #62
Sidetrack
Enthusiast
Sidetrack began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Jan 2009
Location: South Pacific
Device: Kindle DX
I've been going through some of my books looking for bad metadata links from Fantastic Fiction and I'm seeing the weaknesses of their search.

Turns out though that they are fairly consistent in their naming, not perfectly consistent, but you can build a link with a calibre template that works a good percentage of the time and is a lot less prone to bad matches. From what I know of their search interface checking it first would probably reduce the number of times caliber has to hit the website.

Any chance of having an option in the Metadata downloader to try a "built" identifier link before using the FF search interface?

Here's my rough build of the template:
Code:
ff= transliterate(
   lowercase(
    re(
     strcat(
     shorten(field('author_sort'),1,'',0), '/', 
     re(sublist(field('authors'),0,1,'&'),'\.',' '), '/', 
     re(re(field('title'),'&','and'),'(\ba ?\b|\ban ?\b|\bthe ?\b|\.(?= )|\,|’|!|\?|:(?= )|‒|-|…)','')
     ),'[: \.|\']+','-') 
   )
  );
Sidetrack is offline   Reply With Quote
Old 01-10-2017, 06:27 AM   #63
AnselmD
Zealot
AnselmD began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Oct 2013
Device: none
Is this plugin still supported?
I tried this plugin the first time I am using the 1.1.6 and i get the following error:

calibre, version 2.76.0
FEHLER: Keine Übereinstimmungen gefunden: <p>Es wurden keine Bücher für die aktuelle Suche gefunden. Versuchen Sie, die Suche <b>weniger spezifisch</b> zu formulieren. Verwenden Sie beispielsweise nur den Nachnamen des Autors und ein einzelnes, prägnantes Wort aus dem Titel.<p>Um den gesamten Protokoll zu lesen, klicken Sie auf "Details anzeigen".

Running identify query with parameters:
{u'title': u'The Little Grey Men', u'timeout': 30, u'authors': [u'Denys Watkins-Pitchford'], u'identifiers': {}}
Using plugins: Fantastic Fiction
The log from individual plugins is below

****************************** Fantastic Fiction ******************************
Request extra headers: [('User-agent', u'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36')]
Found 0 results
Downloading from Fantastic Fiction took 1.72199988365
Querying ISBN: http://script.fantasticfiction.co.uk/ff-v3.php
Failed to query country: u'http://script.fantasticfiction.co.uk/ff-v3.php'
Traceback (most recent call last):
File "calibre_plugins.fantastic_fiction.__init__", line 152, in get_country
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 199, in open_novisit
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 230, in _mech_open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_opener.py", line 193, in open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 344, in _open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 332, in _call_chain
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 1142, in http_open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 1118, in do_open
URLError: <urlopen error [Errno 11004] getaddrinfo failed>

Querying: http://www.fantasticfiction.co.uk/db...fo,db,imageloc
Failed to make identify query
Traceback (most recent call last):
File "calibre_plugins.fantastic_fiction.__init__", line 275, in identify
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 199, in open_novisit
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 230, in _mech_open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_opener.py", line 204, in open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 457, in http_response
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_opener.py", line 221, in error
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 332, in _call_chain
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 571, in http_error_302
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 203, in open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 230, in _mech_open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_opener.py", line 193, in open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 344, in _open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 332, in _call_chain
File "site-packages\calibre\utils\browser.py", line 27, in https_open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 1118, in do_open
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>

************************************************** ******************************
The identify phase took 1.86 seconds
The longest time (1.722000) was taken by: Fantastic Fiction
Merging results from different sources and finding earliest publication dates from the worldcat.org service
We have 0 merged results, merging took: 0.00 seconds
AnselmD is offline   Reply With Quote
Old 01-10-2017, 07:27 AM   #64
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,431
Karma: 22283078
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
@AnselmD: The plugin is working here. The last error is the problem for you. There was a report last week of a similar problem with Fantastic Fiction using the Import List plugin. The fix was to open the site in either IE or Edge and let the browser download and install the certificate.

The is an earlier error which is a change on the site. But, this isn't stopping the function of the plugin. I'll have a look at this when I have a chance.
davidfor is offline   Reply With Quote
Old 01-10-2017, 04:31 PM   #65
AnselmD
Zealot
AnselmD began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Oct 2013
Device: none
Quote:
Originally Posted by davidfor View Post
@AnselmD: The plugin is working here. The last error is the problem for you. There was a report last week of a similar problem with Fantastic Fiction using the Import List plugin. The fix was to open the site in either IE or Edge and let the browser download and install the certificate.
Hi davidfor, i open the site in IE and the [SSL: CERTIFICATE_VERIFY_FAILED] error is gone now.


Quote:
Originally Posted by davidfor View Post
The is an earlier error which is a change on the site. But, this isn't stopping the function of the plugin. I'll have a look at this when I have a chance.
I get a useful result.
Thank you very much.

Last edited by AnselmD; 01-10-2017 at 04:45 PM.
AnselmD is offline   Reply With Quote
Old 04-30-2017, 09:51 PM   #66
Ginnia
Enthusiast
Ginnia began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2010
Device: Kindle
Fantastic Fiction PlugIn

Is anyone else having problems with this plugin? Don't know if it matters, but the web address has changed and the plugin references the old address. Including the error msg I'm getting.


************************************************** *****************************

****************************** Fantastic Fiction ******************************
Request extra headers: [('User-agent', u'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0')]
Found 0 results
Downloading from Fantastic Fiction took 5.71499991417
Querying ISBN: http://www.fantasticfiction.co.uk/ed...=9780778319511
Failed to make ISBN query: u'http://www.fantasticfiction.co.uk/edition/?isbn=9780778319511'
Traceback (most recent call last):
File "calibre_plugins.fantastic_fiction.__init__", line 212, in query_via_isbn_for_title_author
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 199, in open_novisit
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 255, in _mech_open
httperror_seek_wrapper: HTTP Error 404: Not Found

Querying ISBN: http://script.fantasticfiction.co.uk/ff-v3.php
Querying: http://www.fantasticfiction.co.uk/db...fo,db,imageloc
No matches found
Ginnia is offline   Reply With Quote
Old 05-01-2017, 05:56 AM   #67
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,431
Karma: 22283078
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
It's not just the domain name changed, but some other things about the site have changed. I've been looking at it and will post an update when it's ready.

Also, there are threads dedicated to each plugin. Posting in the plugins thread keeps everything together.
davidfor is offline   Reply With Quote
Old 05-01-2017, 07:45 AM   #68
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,431
Karma: 22283078
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Beta - new domain and other changes

There is an earlier report that this plugin isn't working. This is due to a change in the domain and the search API. Plus some small changes on the details page.

I haven't done a lot of testing, but it is working for the books I have tried. If you see any problems, please report them here.
Attached Files
File Type: zip Fantastic Fiction-beta.zip (17.8 KB, 41 views)
davidfor is offline   Reply With Quote
Old 05-02-2017, 04:29 PM   #69
Ginnia
Enthusiast
Ginnia began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2010
Device: Kindle
That did the trick -- thank you very much.

In the future, I'll try to post in the appropriate thread.

Gin
Ginnia is offline   Reply With Quote
Old 06-12-2017, 01:57 AM   #70
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,431
Karma: 22283078
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Update to version 1.2.0

The update to version 1.2.0 of the plugin has just been released. The changes in the update are:Calibre will present the update sometime in the next hour or so for downloading, or you can manually download it from the first post.

If there are any problems with the update, please report them here and I will look into them.
davidfor 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] Goodreads kiwidude Plugins 369 Today 12:45 PM
[Metadata Source Plugin] Barnes & Noble kiwidude Plugins 128 09-05-2017 09:40 AM
Small Change to Metadata Source plugin API kovidgoyal Development 2 04-25-2011 03:55 PM
Where is Fantastic Fiction? GA Russell General Discussions 6 04-24-2011 07:57 PM
Fantastic Fiction website Leep General Discussions 23 03-09-2011 07:08 AM


All times are GMT -4. The time now is 12:45 PM.


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