From abe1cf1425d64a6d2058dddb0dc04aa853dd530d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 8 May 2017 20:25:17 +0530 Subject: [PATCH] Add Google web search --- src/calibre/ebooks/metadata/search_internet.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/calibre/ebooks/metadata/search_internet.py b/src/calibre/ebooks/metadata/search_internet.py index e8c7ddb0c3..1678512160 100644 --- a/src/calibre/ebooks/metadata/search_internet.py +++ b/src/calibre/ebooks/metadata/search_internet.py @@ -12,20 +12,23 @@ AUTHOR_SEARCHES = { 'wikipedia': 'https://en.wikipedia.org/w/index.php?search={author}', 'google': - 'https://www.google.co.in/search?tbm=bks&q=inauthor:%22{author}%22', + 'https://www.google.com/search?tbm=bks&q=inauthor:%22{author}%22', } BOOK_SEARCHES = { 'goodreads': 'https://www.goodreads.com/search?q={author}+{title}&search%5Bsource%5D=goodreads&search_type=books&tab=books', 'google': - 'https://www.google.co.in/search?tbm=bks&q=inauthor:%22{author}%22+intitle:%22{title}%22', + 'https://www.google.com/search?tbm=bks&q=inauthor:%22{author}%22+intitle:%22{title}%22', + 'gws': + 'https://www.google.com/search?q=inauthor:%22{author}%22+intitle:%22{title}%22', } NAMES = { - 'goodreads': 'Goodreads', - 'google': 'Google Books', - 'wikipedia': 'Wikipedia' + 'goodreads': _('Goodreads'), + 'google': _('Google books'), + 'wikipedia': _('Wikipedia'), + 'gws': _('Google web search'), } name_for = NAMES.get