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 07-21-2016, 04:00 PM   #1
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
[Metadata Source Plugin] Amazon.com Multiple Countries

This plugin allows you to download metadata from an additional Amazon.com country portal, in addition to the builtin Amazon.com metadata source.
Created by request in this thread.

Behind the scenes, it simply subclasses the builtin plugin and offers an additional copy under a different name. So it will only function as well as the builtin plugin, and any bug reports about the quality of the downloaded metadata can be directed to the calibre bugtracker.

The default country portal is France, because that was second on the list after the US (which is the default for the builtin plugin). But obviously, like the buitin source, you can configure it to whichever additional country portal you wish.

Special Notes:
  • Requires Calibre 0.8.2 or later.

Installation Notes:
  • Download the attached zip file and install the plugin as described in the Introduction to plugins thread.
  • Note that this is not a GUI plugin so it is not intended/cannot be added to context menus/toolbars etc.

Version History:
Spoiler:

Version 1.0.0 - 21 July 2016
Initial release of plugin

Attached Files
File Type: zip Amazon.com Multiple Countries.zip (1.1 KB, 137260 views)
eschwartz is offline   Reply With Quote
Old 07-21-2016, 04:03 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
And in case anyone wants three or more sources at the same time, here are some additional copies.
eschwartz is offline   Reply With Quote
Old 08-07-2016, 09:48 AM   #3
Joanna
Groupie
Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.Joanna understands the mechanisms of the catecholamine pathways.
 
Posts: 199
Karma: 76476
Join Date: Feb 2012
Location: Poland
Device: none
Using the plugin, I've noticed one problem.

My standard set-up is with Amazon US (built-in Calibre plugin) and Amazon Germany (Multiple Countries) on.

In some cases (I guess it's when books are in both Amazon stores, which is the case of e.g. some English-language books, offered on Amazon.de) the downloaded comments are a mixture of data from both sources, and some paragraphs are repeated. Is there any way to fix this?

Here an example:


Quote:
Introducing Translation Studies remains the definitive guide to the theories and concepts that make up the field of translation studies. Providing an accessible and up-to-date overview, it has long been the essential textbook on courses worldwide.

This fourth edition has been fully revised and continues to provide a balanced and detailed guide to the theoretical landscape. Each theory is applied to a wide range of languages, including Bengali, Chinese, English, French, German, Italian, Punjabi, Portuguese and Spanish. A broad spectrum of texts is analysed, including the Bible, Buddhist sutras, Beowulf, the fiction of García Márquez and Proust, European Union and UNESCO documents, a range of contemporary films, a travel brochure, a children’s cookery book and the translations of Harry Potter.



****Each chapter comprises an introduction outlining the translation theory or theories, illustrative texts with translations, case studies, a chapter summary and discussion points and exercises.

NEW FEATURES IN THIS FOURTH EDITION INCLUDE:

new material to keep up with developments in research and practice, including the sociology of translation, multilingual cities, translation in the digital age and specialized, audiovisual and machine translation

revised discussion points and updated figures and tables

new, in-chapter activities with links to online materials and articles to encourage independent research

an extensive updated companion website with video introductions and journal articles to accompany each chapter, online exercises, an interactive timeline, weblinks, and powerpoint slides for teacher support

This is a practical, user-friendly textbook ideal for students and researchers on courses in Translation and Translation Studies.

**

Pressestimmen

"Jeremy Munday's Introducing Translation Studies has long been admired for its combination of theoretical rigour and down-to-earth explanation, and this new edition will further confirm its place as the go-to introduction for students and teachers alike. Its further incorporation of ideas from the Chinese context is particularly welcome." Robert Neather, Hong Kong Baptist University, China "An even better fourth edition of a widely popular and commonly used book in Translation Studies (TS). Like former editions, Munday's volume is a sound and accessible introduction to TS that will appeal not only to readers with a professional interest in TS but also to scholars and students in related fields. In Introducing Translation Studies, Munday combines scholarly rigor with reader-friendly style and an excellent didactic orientation, which will continue to make this book highly attractive to students, teachers and newcomers." Sonia Colina, University of Arizona, USA

Kurzbeschreibung

Introducing Translation Studies remains the definitive guide to the theories and concepts that make up the field of translation studies. Providing an accessible and up-to-date overview, it has long been the essential textbook on courses worldwide.

This fourth edition has been fully revised and continues to provide a balanced and detailed guide to the theoretical landscape. Each theory is applied to a wide range of languages, including Bengali, Chinese, English, French, German, Italian, Punjabi, Portuguese and Spanish. A broad spectrum of texts is analysed, including the Bible, Buddhist sutras, Beowulf, the fiction of García Márquez and Proust, European Union and UNESCO documents, a range of contemporary films, a travel brochure, a children’s cookery book and the translations of Harry Potter.



****Each chapter comprises an introduction outlining the translation theory or theories, illustrative texts with translations, case studies, a chapter summary and discussion points and exercises.

NEW FEATURES IN THIS FOURTH EDITION INCLUDE:

new material to keep up with developments in research and practice, including the sociology of translation, multilingual cities, translation in the digital age and specialized, audiovisual and machine translation

revised discussion points and updated figures and tables

new, in-chapter activities with links to online materials and articles to encourage independent research

an extensive updated companion website with video introductions and journal articles to accompany each chapter, online exercises, an interactive timeline, weblinks, and powerpoint slides for teacher support

This is a practical, user-friendly textbook ideal for students and researchers on courses in Translation and Translation Studies.
Joanna is offline   Reply With Quote
Old 08-07-2016, 02:52 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Depending on how you do your metadata downloads, multiple results may or may not be merged.
Obviously, this is extra noticeable when they both return identical results...

IIRC, when downloading metadata for one book at a time, you can choose which result to use, and when downloading for multiple books en masse, calibre will automatically merge the results.

...

tl;dr
Nothing to do with this plugin or Amazon.
eschwartz is offline   Reply With Quote
Old 07-09-2017, 11:01 AM   #5
Inukami
Zealot
Inukami began at the beginning.
 
Inukami's Avatar
 
Posts: 145
Karma: 12
Join Date: Jun 2017
Location: Australia
Device: Mac Pro 2013 & Mini 2018, iPad Mini 4, iPhone 11, iBooks, K4Mac/PC
Option to set IF language is English/Japanese, uses the corresponding Amazon source

Hi @eschwartz

Your plugin for multiple source amazon countries is very useful.

I'm currently using the US (really need Australia) & Japan amazon stores.

A couple of questions/requests:
  1. Would it be possible to add Australia to the list of countries to choose from?
  2. Is there a way to set it so that when it is an English book, it uses the Amazon US metadata source and when it is a Japanese book, it uses the Amazon Japan metadata source? In other words, depending on the language of the book, it will get the metadata from the relevant amazon country? I thought I ready a post talking about this, but can't find anything anymore...

Thanks,

Inukami
Inukami is offline   Reply With Quote
Old 07-09-2017, 10:51 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
  1. In theory, yes. In practice, this plugin subclasses the builtin Amazon metadata source provider, which doesn't include Australia. Any support would have to be added there, at which point this plugin would automatically gain support.
    Kovid will probably be willing to add that if you ask him nicely.
  2. Again, this is something you probably want supported directly in the main Amazon metadata source plugin. I think people are mostly using this plugin as a workaround, in order to return results for both and then choose whichever one they actually want.
eschwartz is offline   Reply With Quote
Old 07-11-2017, 09:37 PM   #7
Inukami
Zealot
Inukami began at the beginning.
 
Inukami's Avatar
 
Posts: 145
Karma: 12
Join Date: Jun 2017
Location: Australia
Device: Mac Pro 2013 & Mini 2018, iPad Mini 4, iPhone 11, iBooks, K4Mac/PC
@eschwartz, thanks for your response.
  1. Regarding including the Australian store in the plugin, I will ask Kovid.
  2. Would another away around using a specific store for a particular book, be having separate libraries? In other words, when you set the defaults, are they for any libraries within Calibre or can you set the defaults differently for different libraries? In this case one library for English books and another library for Japanese manga library...
Inukami is offline   Reply With Quote
Old 07-11-2017, 09:57 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
No, the plugin settings are per user profile (or, in theory, per calibre configuration directory).
Either way, you "could" also just go into your settings every time and change the website it uses.

I mean, really, this plugin was originally created for people who wanted to just return e.g. the results for both Amazon US and Amazon Japan, so that depending on the language of the book you can choose which one is a better result. Or more likely, only one store would have a result, and the other store would simply error and return no results.
eschwartz is offline   Reply With Quote
Old 07-11-2017, 10:32 PM   #9
Inukami
Zealot
Inukami began at the beginning.
 
Inukami's Avatar
 
Posts: 145
Karma: 12
Join Date: Jun 2017
Location: Australia
Device: Mac Pro 2013 & Mini 2018, iPad Mini 4, iPhone 11, iBooks, K4Mac/PC
Hi @eschwartz,

Yes you are correct. I think I won't worry about it then. As most of my manga have Japanese titles, it would be using the Amazon Japan store anyway.

Thanks again for great little plugin

Thanks,

Inukami
Inukami is offline   Reply With Quote
Old 05-28-2023, 05:01 AM   #10
igorius
Zealot
igorius began at the beginning.
 
Posts: 114
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
Plugin spits out errors since calibre 6.17:

Code:
****************************** Amazon.com Multiple Countries (1, 0, 0) ****************************** 
Found 0 results 
Downloading from Amazon.com Multiple Countries took 0.4010591506958008 
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36
Server: amazon
Downloading details from: https://www.amazon.com/dp/bc800870-f598-4f1c-863e-c7b12fbb33ef
URL not found: 'https://www.amazon.com/dp/bc800870-f598-4f1c-863e-c7b12fbb33ef'
Plugin Amazon.com Multiple Countries failed
Traceback (most recent call last):
  File "calibre/ebooks/metadata/sources/amazon.py", line 112, in parse_details_page
  File "mechanize/_mechanize.py", line 241, in open_novisit
  File "mechanize/_mechanize.py", line 313, in _mech_open
mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre/ebooks/metadata/sources/identify.py", line 47, in run
  File "calibre/ebooks/metadata/sources/amazon.py", line 1575, in identify
  File "calibre/ebooks/metadata/sources/amazon.py", line 116, in parse_details_page
calibre.ebooks.metadata.sources.amazon.UrlNotFound: The URL https://www.amazon.com/dp/bc800870-f598-4f1c-863e-c7b12fbb33ef was not found (HTTP 404)
and here (look at the time it needs...)
Code:
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36'), ('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'), ('Upgrade-insecure-requests', '1'), ('Referer', 'https://www.amazon.de/')] 
Downloaded cover: 404x500 
Took 111.24506187438965 seconds 
No cached cover found, running identify
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Server: amazon
Downloading details from: https://www.amazon.de/Waldwissen-Erstaunliche-Erkenntnisse-umfassendste-Standardwerk-ebook/dp/B0BMGF5MQ7/ref=sr_1_1?field-isbn=9783641294229&qid=1684060246&refinements=p_66%3A9783641294229&sr=8-1&unfiltered=1
Downloading cover from: https://m.media-amazon.com/images/I/51JT7sokXzL.jpg
and finally
Code:
****************************** Amazon.com Multiple Countries (1, 0, 0) ****************************** 
Found 3 results 
Downloading from Amazon.com Multiple Countries took 106.34308004379272
igorius 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] Amazon.de karlheinzbehr Plugins 1 06-21-2016 10:10 AM
[Metadata Source Plugin] Question: Amazon.com silbaer Calibre 13 12-31-2015 12:12 PM
[Metadata Source Plugin] Amazon.CN fated Plugins 0 11-20-2014 04:59 PM
Amazon Metadata source plugin not working Stormvision Plugins 3 05-03-2013 08:20 AM
[Metadata Source Plugin] Amazon.it nandocuci Plugins 2 05-18-2011 02:36 AM


All times are GMT -4. The time now is 05:24 AM.


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