Add amazon and google image search as well

This commit is contained in:
Kovid Goyal 2017-05-08 20:46:21 +05:30
parent abe1cf1425
commit 50d027890d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -22,6 +22,10 @@ BOOK_SEARCHES = {
'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',
'amzn':
'http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords={author}+{title}',
'gimg':
'http://www.google.com/images?q=%22{author}%22+%22{title}%22',
}
NAMES = {
@ -29,6 +33,8 @@ NAMES = {
'google': _('Google books'),
'wikipedia': _('Wikipedia'),
'gws': _('Google web search'),
'amzn': _('Amazon'),
'gimg': _('Google images'),
}
name_for = NAMES.get